summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
authorSpiritCroc <dev@spiritcroc.de>2022-05-17 12:03:07 +0200
committerGitHub <noreply@github.com>2022-05-17 11:03:07 +0100
commita34a41f1354147565da248bf3222449c6e976035 (patch)
tree60b152e6dc04f9f58e8f94ad2d936f8d38712f0c /synapse
parentMerge branch 'master' into develop (diff)
downloadsynapse-a34a41f1354147565da248bf3222449c6e976035.tar.xz
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.
Diffstat (limited to 'synapse')
-rw-r--r--synapse/push/httppusher.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/push/httppusher.py b/synapse/push/httppusher.py
index 5818344520..d5603596c0 100644
--- a/synapse/push/httppusher.py
+++ b/synapse/push/httppusher.py
@@ -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