Skip to content
Snippets Groups Projects
Commit 759f6a49 authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

Fix TB when changing status and pm opened

parent 2e50c301
No related branches found
No related tags found
No related merge requests found
......@@ -1464,8 +1464,9 @@ class ChatControl(ChatControlBase):
tb.set_active(not tb.get_active())
def got_connected(self):
#FIXME: We can remove this function ? it's usefull only in GC
ChatControlBase.got_connected(self)
# Refreshing contact
self.contact = gajim.contacts.get_contact_with_highest_priority(self.account,
self.contact.jid)
self.contact = gajim.contacts.get_contact_with_highest_priority(
self.account, self.contact.jid)
self.draw_banner()
......@@ -280,7 +280,8 @@ class Interface:
model[self.roster.status_message_menuitem_iter][3] = True
# Inform all controls for this account of the connection state change
for ctrl in gajim.interface.msg_win_mgr.controls():
for ctrl in gajim.interface.msg_win_mgr.get_controls(
type = message_control.TYPE_GC):
if ctrl.account == account:
if status == 'offline':
ctrl.got_disconnected()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment