mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2024-10-01 11:49:51 -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
1
changelog.d/12721.bugfix
Normal file
1
changelog.d/12721.bugfix
Normal file
@ -0,0 +1 @@
|
|||||||
|
Fix push to dismiss notifications when read on another client. Contributed by @SpiritCroc @ Beeper.
|
@ -405,7 +405,7 @@ class HttpPusher(Pusher):
|
|||||||
rejected = []
|
rejected = []
|
||||||
if "rejected" in resp:
|
if "rejected" in resp:
|
||||||
rejected = resp["rejected"]
|
rejected = resp["rejected"]
|
||||||
else:
|
if not rejected:
|
||||||
self.badge_count_last_call = badge
|
self.badge_count_last_call = badge
|
||||||
return rejected
|
return rejected
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user