Fix a refresh issue in the ConversationTab on status change
This commit is contained in:
parent
cb8c04fd2a
commit
101b20724f
1 changed files with 4 additions and 0 deletions
|
@ -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):
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in a new issue