fix chat tab finding when we get a pm
This commit is contained in:
parent
f0a0929d5c
commit
fc765088f7
1 changed files with 2 additions and 2 deletions
|
@ -1096,14 +1096,14 @@ class MessageWindowMgr(gobject.GObject):
|
||||||
"""
|
"""
|
||||||
fjid = jid
|
fjid = jid
|
||||||
if resource:
|
if resource:
|
||||||
jid += '/' + resource
|
fjid += '/' + resource
|
||||||
ctrl = self.get_control(fjid, account)
|
ctrl = self.get_control(fjid, account)
|
||||||
if ctrl:
|
if ctrl:
|
||||||
return ctrl
|
return ctrl
|
||||||
win = self.get_window(jid, account)
|
win = self.get_window(jid, account)
|
||||||
if win:
|
if win:
|
||||||
ctrl = win.get_control(jid, account)
|
ctrl = win.get_control(jid, account)
|
||||||
if not ctrl.resource:
|
if not ctrl.resource and ctrl.type_id != message_control.TYPE_GC:
|
||||||
return ctrl
|
return ctrl
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue