mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-04 22:54:55 -04:00
Add type hints to event_push_actions. (#11594)
This commit is contained in:
parent
2215954147
commit
b6102230a7
11 changed files with 226 additions and 155 deletions
|
@ -37,7 +37,7 @@ async def get_badge_count(store: DataStore, user_id: str, group_by_room: bool) -
|
|||
room_id, user_id, last_unread_event_id
|
||||
)
|
||||
)
|
||||
if notifs["notify_count"] == 0:
|
||||
if notifs.notify_count == 0:
|
||||
continue
|
||||
|
||||
if group_by_room:
|
||||
|
@ -45,7 +45,7 @@ async def get_badge_count(store: DataStore, user_id: str, group_by_room: bool) -
|
|||
badge += 1
|
||||
else:
|
||||
# increment the badge count by the number of unread messages in the room
|
||||
badge += notifs["notify_count"]
|
||||
badge += notifs.notify_count
|
||||
return badge
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue