[commit-gajim] r11196 - trunk/src
asterix at gajim.org
asterix at gajim.org
Sun Apr 5 20:49:43 CEST 2009
Author: asterix
Date: 2009-04-05 20:49:43 +0200 (Sun, 05 Apr 2009)
New Revision: 11196
Modified:
trunk/src/gajim.py
Log:
re-draw contct in roster after we get offline status. see #3597
Modified: trunk/src/gajim.py
===================================================================
--- trunk/src/gajim.py 2009-04-05 18:35:59 UTC (rev 11195)
+++ trunk/src/gajim.py 2009-04-05 18:49:43 UTC (rev 11196)
@@ -1197,13 +1197,14 @@
win = self.instances[account]['infos'][array[0]]
elif array[0] + '/' + array[1] in self.instances[account]['infos']:
win = self.instances[account]['infos'][array[0] + '/' + array[1]]
+ c = gajim.contacts.get_contact(account, array[0], array[1])
+ if c: # c can be none if it's a gc contact
+ c.last_status_time = time.localtime(time.time() - tim)
+ if array[3]:
+ c.status = array[3]
+ self.roster.draw_contact(c.jid, account) # draw offline status
if win:
- c = gajim.contacts.get_contact(account, array[0], array[1])
- if c: # c can be none if it's a gc contact
- c.last_status_time = time.localtime(time.time() - tim)
- if array[3]:
- c.status = array[3]
- win.set_last_status_time()
+ win.set_last_status_time()
if self.remote_ctrl:
self.remote_ctrl.raise_signal('LastStatusTime', (account, array))
More information about the Commits
mailing list