mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-04 06:54:54 -04:00
Fix push for m.read events (#12721)
badge_count_last_call was always zero when the response for push notifications included a "rejected" key which mapped to an empty list.
This commit is contained in:
parent
1402159bb8
commit
a34a41f135
2 changed files with 2 additions and 1 deletions
|
@ -405,7 +405,7 @@ class HttpPusher(Pusher):
|
|||
rejected = []
|
||||
if "rejected" in resp:
|
||||
rejected = resp["rejected"]
|
||||
else:
|
||||
if not rejected:
|
||||
self.badge_count_last_call = badge
|
||||
return rejected
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue