diff options
author | wurstsalat <mailtrash@posteo.de> | 2022-09-15 10:42:11 +0300 |
---|---|---|
committer | wurstsalat <mailtrash@posteo.de> | 2022-09-15 10:42:11 +0300 |
commit | 9025c402ac382018cfa61c7b8d88d8c5ff3ecf24 (patch) | |
tree | 92628d6e485aa02c20c6dd59b69ecf3c634014c3 | |
parent | 10dd1c8a0cdd61613811a9192ad74f147875c3aa (diff) |
cfix: Read state sync: Don't fail if last message is not available
-rw-r--r-- | gajim/gtk/main.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gajim/gtk/main.py b/gajim/gtk/main.py index 9fdfcbd70..b7bee76fd 100644 --- a/gajim/gtk/main.py +++ b/gajim/gtk/main.py @@ -982,6 +982,9 @@ class MainWindow(Gtk.ApplicationWindow, EventHelper): 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 |