Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/python-nbxmpp.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlovetox <philipp@hoerist.com>2021-09-08 22:34:14 +0300
committerlovetox <philipp@hoerist.com>2021-09-08 22:35:16 +0300
commitce8191222c6602c65b414ec869ec2c66e368704f (patch)
tree16ed31ba0f122fb36695055be92057dbb6aa892a
parent0ff3090e09e5e63a88ddecf95ac0f0dc80177db4 (diff)
Correction: Ignore messages where message id == replace id
This can only happen when clients don’t use unique ids or are broken
-rw-r--r--nbxmpp/modules/correction.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/nbxmpp/modules/correction.py b/nbxmpp/modules/correction.py
index 664307b..246506d 100644
--- a/nbxmpp/modules/correction.py
+++ b/nbxmpp/modules/correction.py
@@ -44,4 +44,9 @@ class Correction(BaseModule):
self._log.warning(stanza)
return
+ if stanza.getID() == id_:
+ self._log.warning('correcton id == message id')
+ self._log.warning(stanza)
+ return
+
properties.correction = CorrectionData(id_)