summary refs log tree commit diff
diff options
context:
space:
mode:
authorDavid Baker <dave@matrix.org>2016-01-20 13:50:28 +0000
committerDavid Baker <dave@matrix.org>2016-01-20 13:50:28 +0000
commit7cc047455e3f0893569853edbafa19bfe2b5d4ed (patch)
tree525f8aeb47b7c00d4a4664ecaab3dfd7f91b0748
parentSimplify badge updating code by just updating it every time we get woken up a... (diff)
downloadsynapse-7cc047455e3f0893569853edbafa19bfe2b5d4ed.tar.xz
Inline membership specifier
-rw-r--r--synapse/push/__init__.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/synapse/push/__init__.py b/synapse/push/__init__.py
index 438341b518..ffae02a285 100644
--- a/synapse/push/__init__.py
+++ b/synapse/push/__init__.py
@@ -285,11 +285,9 @@ class Pusher(object):
 
     @defer.inlineCallbacks
     def _get_badge_count(self):
-        membership_list = (Membership.INVITE, Membership.JOIN)
-
         room_list = yield self.store.get_rooms_for_user_where_membership_is(
             user_id=self.user_id,
-            membership_list=membership_list
+            membership_list=(Membership.INVITE, Membership.JOIN)
         )
 
         user_is_guest = yield self.store.is_guest(self.user_id)