use correct account when we look for recent messages.

This commit is contained in:
Yann Leboulanger 2007-08-09 22:53:12 +00:00
parent 896b5647f2
commit 44f4940c6c
1 changed files with 3 additions and 2 deletions

View File

@ -4062,8 +4062,9 @@ class RosterWindow:
for ctrl in win.controls():
fjid = ctrl.get_full_jid()
if gajim.last_message_time[acct].has_key(fjid):
if time.time() - gajim.last_message_time[acct][fjid] < 2:
if gajim.last_message_time[ctrl.account].has_key(fjid):
if time.time() - gajim.last_message_time[ctrl.accountt][fjid]\
< 2:
recent = True
break
if unread: