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


Commits:
9025c402 by wurstsalat at 2022-09-15T09:42:11+02:00
cfix: Read state sync: Don't fail if last message is not available

- - - - -


1 changed file:

- gajim/gtk/main.py


Changes:

=====================================
gajim/gtk/main.py
=====================================
@@ -982,6 +982,9 @@ def _on_read_state_sync(self, event: events.ReadStateSync) 
-> None:
         last_message = app.storage.archive.get_last_conversation_line(
             event.account, jid)
 
+        if last_message is None:
+            return
+
         if event.marker_id != last_message.message_id:
             return
 



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

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


_______________________________________________
Commits mailing list
Commits@gajim.org
https://lists.gajim.org/cgi-bin/listinfo/commits

Reply via email to