Philipp Hörist pushed to branch master at gajim / python-nbxmpp


Commits:
bb659b1c by Philipp Hörist at 2024-05-18T23:42:25+02:00
new: Reactions: Log stanza on warning

- - - - -


1 changed file:

- nbxmpp/modules/reactions.py


Changes:

=====================================
nbxmpp/modules/reactions.py
=====================================
@@ -57,7 +57,7 @@ class Reactions(BaseModule):
             self._log.warning('Reactions without ID')
             return
 
-        emojis = set()
+        emojis: set[str] = set()
         for reaction in reactions.getTags('reaction'):
             # we strip for clients that might add white spaces and/or
             # new lines in the reaction content.
@@ -66,5 +66,6 @@ class Reactions(BaseModule):
                 emojis.add(emoji)
             else:
                 self._log.warning('Empty reaction')
+                self._log.warning(stanza)
 
         properties.reactions = ReactionStruct(id_, emojis)



View it on GitLab: 
https://dev.gajim.org/gajim/python-nbxmpp/-/commit/bb659b1ce398ebd8744b274135a0b1e9145f23fd

-- 
View it on GitLab: 
https://dev.gajim.org/gajim/python-nbxmpp/-/commit/bb659b1ce398ebd8744b274135a0b1e9145f23fd
You're receiving this email because of your account on dev.gajim.org.


_______________________________________________
Commits mailing list -- commits@gajim.org
To unsubscribe send an email to commits-le...@gajim.org

Reply via email to