handle caps correctly for pm. Fixes #7466

This commit is contained in:
Yann Leboulanger 2013-10-29 17:26:25 +01:00
parent 1b9672560d
commit 94f547583c
1 changed files with 5 additions and 1 deletions

View File

@ -2858,7 +2858,11 @@ class ChatControl(ChatControlBase):
self.parent_win.redraw_tab(self, self.contact.chatstate)
def _nec_caps_received(self, obj):
if obj.conn.name != self.account or obj.jid != self.contact.jid:
if obj.conn.name != self.account:
return
if self.TYPE_ID == 'chat' and obj.jid != self.contact.jid:
return
if self.TYPE_ID == 'pm' and obj.fjid != self.contact.jid:
return
self.update_ui()