From f2d048948849638a999254842e25213000ae7cca Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Wed, 12 Oct 2022 16:46:42 +0300 Subject: [PATCH] Fix another bug --- mautrix_telegram/user.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mautrix_telegram/user.py b/mautrix_telegram/user.py index 62ed8f28..2e7194d3 100644 --- a/mautrix_telegram/user.py +++ b/mautrix_telegram/user.py @@ -700,7 +700,7 @@ class User(DBUser, AbstractUser, BaseUser): force_read = ( was_created and unread_threshold_hours >= 0 - and last_message_date + timedelta(hours=unread_threshold_hours) < datetime.now() + and last_message_date + timedelta(hours=unread_threshold_hours) < datetime.utcnow() ) if dialog.unread_count == 0 or force_read: # This is usually more reliable than finding a specific message