don't take last_status_time into account when it's a groupchat contact. Fixes #1628

This commit is contained in:
Yann Leboulanger 2006-03-01 20:20:00 +00:00
parent aa90dc35a6
commit 4fe40baab9
1 changed files with 5 additions and 4 deletions

View File

@ -776,10 +776,11 @@ class Interface:
# is offline, so only on Contact instance
if isinstance(c, list):
c = c[0]
c.last_status_time = time.localtime(time.time() - array[2])
if array[3]:
c.status = array[3]
win.set_last_status_time()
if c: # c can be none if it's a gc contact
c.last_status_time = time.localtime(time.time() - array[2])
if array[3]:
c.status = array[3]
win.set_last_status_time()
if self.remote_ctrl:
self.remote_ctrl.raise_signal('LastStatusTime', (account, array))