mirror of
https://github.com/element-hq/synapse
synced 2024-09-06 01:50:08 +00:00
Don't push users who have left
This commit is contained in:
parent
107ac7ac96
commit
72ed8196b3
1 changed files with 4 additions and 1 deletions
|
@ -299,7 +299,10 @@ class RulesForRoom(object):
|
||||||
for row in rows
|
for row in rows
|
||||||
}
|
}
|
||||||
|
|
||||||
interested_in_user_ids = set(user_id for user_id, _ in members.itervalues())
|
interested_in_user_ids = set(
|
||||||
|
user_id for user_id, membership in members.itervalues()
|
||||||
|
if membership == Membership.JOIN
|
||||||
|
)
|
||||||
|
|
||||||
if_users_with_pushers = yield self.store.get_if_users_have_pushers(
|
if_users_with_pushers = yield self.store.get_if_users_have_pushers(
|
||||||
interested_in_user_ids,
|
interested_in_user_ids,
|
||||||
|
|
Loading…
Reference in a new issue