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


Commits:
2ee672cd by Philipp Hörist at 2025-04-13T00:22:45+02:00
fix: MDS: Set by attribute correctly

- - - - -


2 changed files:

- gajim/gtk/chat_stack.py
- gajim/gtk/main.py


Changes:

=====================================
gajim/gtk/chat_stack.py
=====================================
@@ -389,7 +389,8 @@ def _on_message_received(self, event: 
events.MessageReceived) -> None:
             )
 
             if not mds_assist_sent and stanza_id is not None:
-                client.get_module("MDS").set_mds(contact.jid, stanza_id)
+                by = contact.jid if isinstance(contact, GroupchatContact) else 
None
+                client.get_module("MDS").set_mds(contact.jid, stanza_id, by)
 
             return
 


=====================================
gajim/gtk/main.py
=====================================
@@ -1145,7 +1145,8 @@ def mark_as_read(
         )
 
         if not mds_assist_sent and last_message.stanza_id is not None:
-            client.get_module("MDS").set_mds(contact.jid, 
last_message.stanza_id)
+            by = contact.jid if isinstance(contact, GroupchatContact) else None
+            client.get_module("MDS").set_mds(contact.jid, 
last_message.stanza_id, by)
 
     def _on_window_active(self, window: Gtk.ApplicationWindow, _param: Any) -> 
None:
         if not window.is_active():



View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/2ee672cde9214a2daf573243dc4d54d749cea068

-- 
View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/2ee672cde9214a2daf573243dc4d54d749cea068
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