unread-counter-fix2
This commit is contained in:
parent
f5da6d450b
commit
7348e5d9fe
|
@ -18,6 +18,6 @@ async def get_total_unread_counter(author_id: int):
|
||||||
chats = await redis.execute("SMEMBERS", f"chats_by_author/{author_id}")
|
chats = await redis.execute("SMEMBERS", f"chats_by_author/{author_id}")
|
||||||
unread = 0
|
unread = 0
|
||||||
for chat_id in list(chats):
|
for chat_id in list(chats):
|
||||||
n = await get_unread_counter(chat_id.decode("utf-8"), author_id)
|
n = await get_unread_counter(chat_id, author_id)
|
||||||
unread += n
|
unread += n
|
||||||
return unread
|
return unread
|
||||||
|
|
Loading…
Reference in New Issue
Block a user