make sure messages are marked as read before they get handled

This commit is contained in:
missytake 2025-08-31 19:18:10 +02:00
parent 6e93a63c40
commit 327a6c60d7
Signed by: missytake
GPG key ID: 04CC6658320518DF

View file

@ -19,8 +19,8 @@ def loop(ac: deltachat.Account):
print(f"Selected {admin_chat.get_name()} as admin chat")
while True:
for msg in ac.get_fresh_messages():
handle_incoming_message(msg, ac)
msg.mark_seen()
handle_incoming_message(msg, ac)
time.sleep(3)