style: apply black formatting to match project standards

This commit is contained in:
Bayram Annakov 2025-12-26 13:51:20 -08:00
parent aabe9d8bc0
commit 11bfca7083

View file

@ -944,9 +944,7 @@ async def list_chats(chat_type: str = None, limit: int = 20) -> str:
# Also check unread_mark (manual "mark as unread" flag) # Also check unread_mark (manual "mark as unread" flag)
inner_dialog = getattr(dialog, "dialog", None) inner_dialog = getattr(dialog, "dialog", None)
unread_mark = ( unread_mark = (
bool(getattr(inner_dialog, "unread_mark", False)) bool(getattr(inner_dialog, "unread_mark", False)) if inner_dialog else False
if inner_dialog
else False
) )
if unread_count > 0: if unread_count > 0:
@ -955,7 +953,7 @@ async def list_chats(chat_type: str = None, limit: int = 20) -> str:
chat_info += ", Unread: marked" chat_info += ", Unread: marked"
else: else:
chat_info += ", No unread messages" chat_info += ", No unread messages"
results.append(chat_info) results.append(chat_info)
if not results: if not results: