From 700c01b2d33ada1d4896e6bc59281d8a9fcc5db1 Mon Sep 17 00:00:00 2001 From: Bayram Annakov Date: Fri, 26 Dec 2025 13:46:59 -0800 Subject: [PATCH] Update main.py Co-authored-by: Eugene Evstafev <36392751+chigwell@users.noreply.github.com> --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index 965b275..37cb5ba 100644 --- a/main.py +++ b/main.py @@ -943,7 +943,7 @@ async def list_chats(chat_type: str = None, limit: int = 20) -> str: unread_count = getattr(dialog, "unread_count", 0) or 0 # Also check unread_mark (manual "mark as unread" flag) inner_dialog = getattr(dialog, "dialog", None) - unread_mark = ( + unread_mark = bool( getattr(inner_dialog, "unread_mark", False)) if inner_dialog else False else False