forked from MirrorHub/synapse
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
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 a new issue