diff options
author | mathieui <mathieui@mathieui.net> | 2014-02-03 08:40:32 +0100 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2014-02-03 08:40:32 +0100 |
commit | 20e5c69503acff7050132f73abae2657db27a3a8 (patch) | |
tree | 47b3263e82183bb7e84468ce7a77e06d93303ad6 | |
parent | bf682651e0db9476a4ff24af80091453da43b216 (diff) | |
download | poezio-20e5c69503acff7050132f73abae2657db27a3a8.tar.gz poezio-20e5c69503acff7050132f73abae2657db27a3a8.tar.bz2 poezio-20e5c69503acff7050132f73abae2657db27a3a8.tar.xz poezio-20e5c69503acff7050132f73abae2657db27a3a8.zip |
Do not unlock a tab when receiving a presence from the same resource
(makes OTR bug)
-rw-r--r-- | src/core.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 |