diff options
author | mathieui <mathieui@mathieui.net> | 2011-11-07 19:28:12 +0100 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2011-11-07 19:28:12 +0100 |
commit | 70a809a7b4e5c4585b31e7ed023ae0b91d65c7a4 (patch) | |
tree | c1981a593e7bc7a4a9360ff94d5d261fd15bfcdf | |
parent | 10fe12086d1dceab3d3796938aa0414877e79e63 (diff) | |
download | poezio-70a809a7b4e5c4585b31e7ed023ae0b91d65c7a4.tar.gz poezio-70a809a7b4e5c4585b31e7ed023ae0b91d65c7a4.tar.bz2 poezio-70a809a7b4e5c4585b31e7ed023ae0b91d65c7a4.tar.xz poezio-70a809a7b4e5c4585b31e7ed023ae0b91d65c7a4.zip |
Refresh the RosterInfoTab on got_offline and got_online
-rw-r--r-- | src/core.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core.py b/src/core.py index 30935330..9a36b370 100644 --- a/src/core.py +++ b/src/core.py @@ -361,6 +361,8 @@ class Core(object): if not contact.get_highest_priority_resource(): # No resource left: that was the last one self.add_information_message_to_conversation_tab(jid.bare, '\x195}%s is \x191}offline' % (jid.bare)) self.information('\x193}%s \x195}is \x191}offline' % (resource.get_jid().bare), "Roster") + if isinstance(self.current_tab(), tabs.RosterInfoTab): + self.refresh_window() def on_got_online(self, presence): jid = presence['from'] @@ -386,6 +388,8 @@ class Core(object): self.information("\x193}%s \x195}is \x194}online\x195} (\x190}%s\x195})" % (resource.get_jid().bare, status), "Roster") self.add_information_message_to_conversation_tab(jid.bare, '\x195}%s is \x194}online' % (jid.bare)) contact.add_resource(resource) + if isinstance(self.current_tab(), tabs.RosterInfoTab): + self.refresh_window() def add_information_message_to_conversation_tab(self, jid, msg): """ |