Daniel Brötzmann pushed to branch master at gajim / gajim
Commits:
d54ec587 by wurstsalat at 2023-01-13T14:10:22+01:00
fix: Don't fail in mark_as_unread if there are no messages
This can happen if chat history is not stored (user setting)
Fixes #11360
- - - - -
1 changed file:
- gajim/gtk/main.py
Changes:
=====================================
gajim/gtk/main.py
=====================================
@@ -1061,6 +1061,9 @@ def mark_as_read(self,
last_message = app.storage.archive.get_last_conversation_line(
account, jid)
+ if last_message is None:
+ return
+
client = app.get_client(account)
contact = client.get_module('Contacts').get_contact(jid)
client.get_module('ChatMarkers').send_displayed_marker(
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/d54ec587d0069d92a195bccf722441b34fe2f389
--
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/d54ec587d0069d92a195bccf722441b34fe2f389
You're receiving this email because of your account on dev.gajim.org.
_______________________________________________
Commits mailing list
[email protected]
https://lists.gajim.org/cgi-bin/listinfo/commits