Fix a refresh issue in the ConversationTab on status change

This commit is contained in:
mathieui 2011-11-11 22:45:44 +01:00
parent cb8c04fd2a
commit 101b20724f

View file

@ -664,8 +664,12 @@ class Core(object):
resource.presence = status resource.presence = status
resource.priority = priority resource.priority = priority
resource.status = status_message resource.status = status_message
tab = self.get_tab_of_conversation_with_jid(jid, create=False)
if isinstance(self.current_tab(), tabs.RosterInfoTab): if isinstance(self.current_tab(), tabs.RosterInfoTab):
self.refresh_window() self.refresh_window()
elif self.current_tab() == tab:
tab.refresh()
self.doupdate()
def on_roster_update(self, iq): def on_roster_update(self, iq):
""" """