From 44f4940c6c7585774df23c8aefa215ae6fee72b3 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Thu, 9 Aug 2007 22:53:12 +0000 Subject: [PATCH] use correct account when we look for recent messages. --- src/roster_window.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/roster_window.py b/src/roster_window.py index 42615a039..08d45eda5 100644 --- a/src/roster_window.py +++ b/src/roster_window.py @@ -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: