Skip to content
Snippets Groups Projects
Unverified Commit a34a41f1 authored by SpiritCroc's avatar SpiritCroc Committed by GitHub
Browse files

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.
parent 1402159b
No related branches found
No related tags found
No related merge requests found
Fix push to dismiss notifications when read on another client. Contributed by @SpiritCroc @ Beeper.
...@@ -405,7 +405,7 @@ class HttpPusher(Pusher): ...@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment