From aef7ebfa182ce3d747607495a0ed864d44d640de Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Wed, 19 Jul 2006 15:06:08 +0000 Subject: [PATCH] fix behaviour when we get a message from ourself --- src/roster_window.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/roster_window.py b/src/roster_window.py index 57ab467ed..9ccf97344 100644 --- a/src/roster_window.py +++ b/src/roster_window.py @@ -2253,7 +2253,8 @@ _('If "%s" accepts this request you will know his or her status.') % jid) if not ctrl: # if not, if message comes from highest prio, get control or open one # without resource - if highest_contact and contact.resource == highest_contact.resource: + if highest_contact and contact.resource == highest_contact.resource \ + and not jid == gajim.get_jid_from_account(account): ctrl = gajim.interface.msg_win_mgr.get_control(jid, account) fjid = jid resource_for_chat = None