Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/gajim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwurstsalat <mailtrash@posteo.de>2022-09-15 10:42:11 +0300
committerwurstsalat <mailtrash@posteo.de>2022-09-15 10:42:11 +0300
commit9025c402ac382018cfa61c7b8d88d8c5ff3ecf24 (patch)
tree92628d6e485aa02c20c6dd59b69ecf3c634014c3
parent10dd1c8a0cdd61613811a9192ad74f147875c3aa (diff)
cfix: Read state sync: Don't fail if last message is not available
-rw-r--r--gajim/gtk/main.py3
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