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
This commit is contained in:
parent
e6200b599a
commit
37c84ef192
|
@ -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):
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue