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

Fix membership count for BulkPushRuleEvaluator #661

Merged
merged 1 commit into from
Mar 22, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion synapse/push/bulk_push_rule_evaluator.py
Original file line number Diff line number Diff line change
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