correctly refresh the screen on got_offline/online
This commit is contained in:
parent
828ed2991b
commit
2c840b6bf8
1 changed files with 2 additions and 6 deletions
|
@ -207,7 +207,6 @@ class Core(object):
|
|||
# the only resource online (i.e. now the contact is completely disconnected)
|
||||
if not contact.get_highest_priority_resource(): # No resource left: that was the last one
|
||||
self.add_information_message_to_conversation_tab(jid.bare, '%s is offline' % (jid.bare))
|
||||
if isinstance(self.current_tab(), tabs.RosterInfoTab):
|
||||
self.refresh_window()
|
||||
|
||||
def on_got_online(self, presence):
|
||||
|
@ -521,8 +520,6 @@ class Core(object):
|
|||
self.refresh_window()
|
||||
|
||||
def on_presence(self, presence):
|
||||
"""
|
||||
"""
|
||||
jid = presence['from']
|
||||
contact = roster.get_contact_by_jid(jid.bare)
|
||||
if not contact:
|
||||
|
@ -536,7 +533,6 @@ class Core(object):
|
|||
resource.set_presence(status)
|
||||
resource.set_priority(priority)
|
||||
resource.set_status(status_message)
|
||||
if isinstance(self.current_tab(), tabs.RosterInfoTab):
|
||||
self.refresh_window()
|
||||
|
||||
def on_roster_update(self, iq):
|
||||
|
|
Loading…
Reference in a new issue