Fix another bug

This commit is contained in:
Tulir Asokan
2022-10-12 16:46:42 +03:00
parent f815d5e2fd
commit f2d0489488
+1 -1
View File
@@ -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