Philipp Hörist pushed to branch master at gajim / gajim

Commits:
5236693d by Philipp Hörist at 2017-11-11T21:46:00+01:00
Parse stanza-id in groupchat correctly

- - - - -


1 changed file:

- gajim/common/connection_handlers_events.py


Changes:

=====================================
gajim/common/connection_handlers_events.py
=====================================
--- 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):



View it on GitLab: 
https://dev.gajim.org/gajim/gajim/commit/5236693df9f5855888411bcaaed41b01f3f0d411

---
View it on GitLab: 
https://dev.gajim.org/gajim/gajim/commit/5236693df9f5855888411bcaaed41b01f3f0d411
You're receiving this email because of your account on dev.gajim.org.
_______________________________________________
Commits mailing list
[email protected]
https://lists.gajim.org/cgi-bin/listinfo/commits

Reply via email to