Daniel Brötzmann pushed to branch master at gajim / gajim


Commits:
bd251b11 by wurstsalat at 2024-07-28T13:41:54+02:00
cfix: ChatStack: Abort early if sending displayed marker is not possible

- - - - -


1 changed file:

- gajim/gtk/chat_stack.py


Changes:

=====================================
gajim/gtk/chat_stack.py
=====================================
@@ -370,8 +370,13 @@ def _on_message_received(self, event: 
events.MessageReceived) -> None:
             return
 
         if app.window.is_chat_active(event.account, event.jid):
+            if event.message.id is None:
+                return
+
             client = app.get_client(event.account)
             contact = client.get_module('Contacts').get_contact(event.jid)
+            assert isinstance(
+                contact, BareContact | GroupchatContact | GroupchatParticipant)
             client.get_module('ChatMarkers').send_displayed_marker(
                 contact,
                 event.message.id,



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

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