From aabe9d8bc08c49b6ab88553d1cea2e668b8810e1 Mon Sep 17 00:00:00 2001 From: Bayram Annakov Date: Fri, 26 Dec 2025 13:48:36 -0800 Subject: [PATCH] fix: correct syntax error from suggestion application MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The individual line suggestions created invalid Python when applied separately. Combined the ternary expression properly. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- main.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/main.py b/main.py index 1607c26..515c58a 100644 --- a/main.py +++ b/main.py @@ -943,9 +943,11 @@ 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 = bool( - getattr(inner_dialog, "unread_mark", False)) - if inner_dialog else False + unread_mark = ( + bool(getattr(inner_dialog, "unread_mark", False)) + if inner_dialog + else False + ) if unread_count > 0: chat_info += f", Unread: {unread_count}"