diff options
author | Erik Johnston <erik@matrix.org> | 2017-05-18 17:48:36 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2017-05-18 17:48:36 +0100 |
commit | 72ed8196b3b83f19d09b9ad7078a1cd3f07dc0c5 (patch) | |
tree | de0c75e2d64f3b120fa486f6b56071b7cdcbbeb4 /synapse/push | |
parent | Increase size of push rule caches (diff) | |
download | synapse-72ed8196b3b83f19d09b9ad7078a1cd3f07dc0c5.tar.xz |
Don't push users who have left
Diffstat (limited to 'synapse/push')
-rw-r--r-- | synapse/push/bulk_push_rule_evaluator.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/synapse/push/bulk_push_rule_evaluator.py b/synapse/push/bulk_push_rule_evaluator.py index 386d7bed81..0158026915 100644 --- a/synapse/push/bulk_push_rule_evaluator.py +++ b/synapse/push/bulk_push_rule_evaluator.py @@ -299,7 +299,10 @@ class RulesForRoom(object): 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( interested_in_user_ids, |