Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Merge pull request #661 from matrix-org/markjh/member_count
Browse files Browse the repository at this point in the history
Fix membership count for BulkPushRuleEvaluator
  • Loading branch information
NegativeMjark committed Mar 22, 2016
2 parents fa2f96c + 5defb25 commit cd9ba1e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion synapse/push/bulk_push_rule_evaluator.py
Expand Up @@ -107,7 +107,9 @@ def action_for_event_by_user(self, event, handler, current_state):
users_dict.items(), [event], {event.event_id: current_state}
)

evaluator = PushRuleEvaluatorForEvent(event, len(self.users_in_room))
room_members = yield self.store.get_users_in_room(self.room_id)

evaluator = PushRuleEvaluatorForEvent(event, len(room_members))

condition_cache = {}

Expand Down

0 comments on commit cd9ba1e

Please sign in to comment.