From 37c84ef192d7c45ca8c3259d3c23ea549860495c Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Tue, 7 Mar 2006 13:44:42 +0000 Subject: [PATCH] when we open a message window by clicking popup menu or systray or doubble click on roster, treate it as long time ago message (don't show 2 seconds confirmation when closing it). Fixes #1591 --- src/gajim.py | 1 + src/roster_window.py | 1 + 2 files changed, 2 insertions(+) diff --git a/src/gajim.py b/src/gajim.py index 6a449f9ae..b16a502cf 100755 --- a/src/gajim.py +++ b/src/gajim.py @@ -1489,6 +1489,7 @@ class Interface: else: contact = gajim.contacts.get_first_contact_from_jid(account, jid) self.roster.new_chat(contact, account) + gajim.last_message_time[account][jid] = 0 # long time ago w = gajim.interface.msg_win_mgr.get_window(jid, account) elif typ == message_control.TYPE_PM: if gajim.interface.msg_win_mgr.has_window(jid, account): diff --git a/src/roster_window.py b/src/roster_window.py index c9c69dcec..047a4e48d 100644 --- a/src/roster_window.py +++ b/src/roster_window.py @@ -2236,6 +2236,7 @@ _('If "%s" accepts this request you will know his or her status.') % jid) win.set_active_tab(jid, account) elif c: self.new_chat(c, account) + gajim.last_message_time[account][c.jid] = 0 # long time ago win = gajim.interface.msg_win_mgr.get_window(jid, account) win.set_active_tab(jid, account) win.window.present()