From 5236693df9f5855888411bcaaed41b01f3f0d411 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20H=C3=B6rist?= Date: Sat, 11 Nov 2017 21:46:00 +0100 Subject: [PATCH] Parse stanza-id in groupchat correctly --- gajim/common/connection_handlers_events.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/gajim/common/connection_handlers_events.py b/gajim/common/connection_handlers_events.py index 4f89c3965..34121295b 100644 --- a/gajim/common/connection_handlers_events.py +++ b/gajim/common/connection_handlers_events.py @@ -148,10 +148,14 @@ class HelperEvent: if by is None: # We can not verify who set this stanza-id, ignore it. return - elif not self.conn.get_own_jid().bareMatch(by): - # by attribute does not match the server, ignore it. - return - return stanza_id + if stanza.getType() == 'groupchat': + if stanza.getFrom().bareMatch(by): + # by attribute must match the server + return stanza_id + elif self.conn.get_own_jid().bareMatch(by): + # by attribute must match the server + return stanza_id + return @staticmethod def get_forwarded_message(stanza):