diff options
author | lovetox <philipp@hoerist.com> | 2021-09-08 22:34:14 +0300 |
---|---|---|
committer | lovetox <philipp@hoerist.com> | 2021-09-08 22:35:16 +0300 |
commit | ce8191222c6602c65b414ec869ec2c66e368704f (patch) | |
tree | 16ed31ba0f122fb36695055be92057dbb6aa892a | |
parent | 0ff3090e09e5e63a88ddecf95ac0f0dc80177db4 (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.py | 5 |
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_) |