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


Commits:
1f57ac3b by Philipp Hörist at 2024-05-19T22:44:28+02:00
refactor: Store reactions on MUC reflection

- - - - -


1 changed file:

- gajim/common/modules/message.py


Changes:

=====================================
gajim/common/modules/message.py
=====================================
@@ -400,7 +400,13 @@ def build_message_stanza(self, message: OutgoingMessage) 
-> nbxmpp.Message:
         return stanza
 
     def store_message(self, message: OutgoingMessage) -> None:
-        if not message.has_text() and message.reaction_data is None:
+        if (not message.has_text() and
+                message.reaction_data is None):
+            return
+
+        if (message.type == MessageType.GROUPCHAT and
+                message.reaction_data is not None):
+            # Store reaction when the MUC reflects it
             return
 
         direction = ChatDirection.OUTGOING



View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/1f57ac3bcf70cf9867ab20386c3acefe6eed0bc0

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


_______________________________________________
Commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to