Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Fix push for m.read events
Browse files Browse the repository at this point in the history
badge_count_last_call was always zero when the response for push
notifications included a "rejected" key which mapped to an empty list.
  • Loading branch information
SpiritCroc committed May 12, 2022
1 parent 17e1eb7 commit 5b9e70d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion synapse/push/httppusher.py
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ async def dispatch_push(
rejected = []
if "rejected" in resp:
rejected = resp["rejected"]
else:
if not rejected:
self.badge_count_last_call = badge
return rejected

Expand Down

0 comments on commit 5b9e70d

Please sign in to comment.