Merge pull request #84 from dsvetlov/feat/unread-mentions-count

feat: show unread mentions count in list_chats output
This commit is contained in:
Eugene Evstafev 2026-03-31 16:34:11 +01:00 committed by GitHub
commit 0b1e2b48fd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1347,6 +1347,11 @@ async def list_chats(
chat_info += f", Muted: {'yes' if is_muted else 'no'}"
# Add unread mentions count if available
unread_mentions = getattr(dialog, "unread_mentions_count", 0) or 0
if unread_mentions > 0:
chat_info += f", Unread mentions: {unread_mentions}"
results.append(chat_info)
if not results: