From 20e5c69503acff7050132f73abae2657db27a3a8 Mon Sep 17 00:00:00 2001 From: mathieui Date: Mon, 3 Feb 2014 08:40:32 +0100 Subject: Do not unlock a tab when receiving a presence from the same resource (makes OTR bug) --- src/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/core.py b/src/core.py index 169df31f..42ea5864 100644 --- a/src/core.py +++ b/src/core.py @@ -3443,7 +3443,7 @@ class Core(object): jid = presence['from'] contact = roster[jid.bare] tab = self.get_conversation_by_jid(jid, create=False) - if isinstance(tab, tabs.DynamicConversationTab): + if isinstance(tab, tabs.DynamicConversationTab) and tab.get_dest_jid() != jid.full: tab.unlock() if contact is None: return -- cgit v1.2.3