From ce8191222c6602c65b414ec869ec2c66e368704f Mon Sep 17 00:00:00 2001 From: lovetox Date: Wed, 8 Sep 2021 21:34:14 +0200 Subject: Correction: Ignore messages where message id == replace id MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This can only happen when clients don’t use unique ids or are broken --- nbxmpp/modules/correction.py | 5 +++++ 1 file changed, 5 insertions(+) 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_) -- cgit v1.2.3