mirror of
https://github.com/element-hq/synapse
synced 2024-08-20 00:20:25 +00:00
Inline membership specifier
This commit is contained in:
parent
d726597737
commit
7cc047455e
1 changed files with 1 additions and 3 deletions
|
@ -285,11 +285,9 @@ class Pusher(object):
|
||||||
|
|
||||||
@defer.inlineCallbacks
|
@defer.inlineCallbacks
|
||||||
def _get_badge_count(self):
|
def _get_badge_count(self):
|
||||||
membership_list = (Membership.INVITE, Membership.JOIN)
|
|
||||||
|
|
||||||
room_list = yield self.store.get_rooms_for_user_where_membership_is(
|
room_list = yield self.store.get_rooms_for_user_where_membership_is(
|
||||||
user_id=self.user_id,
|
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)
|
user_is_guest = yield self.store.is_guest(self.user_id)
|
||||||
|
|
Loading…
Reference in a new issue