Commit fc765088 authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

fix chat tab finding when we get a pm

parent f0a0929d
......@@ -1096,14 +1096,14 @@ class MessageWindowMgr(gobject.GObject):
fjid = jid
if resource:
jid += '/' + resource
fjid += '/' + resource
ctrl = self.get_control(fjid, account)
if ctrl:
return ctrl
win = self.get_window(jid, account)
if win:
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 None
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment