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
|
@ -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 = []
|
||||
if "rejected" in resp:
|
||||
rejected = resp["rejected"]
|
||||
else:
|
||||
if not rejected:
|
||||
self.badge_count_last_call = badge
|
||||
return rejected
|
||||
|
||||
|
|
Loading…
Reference in New Issue