Skip to content
Snippets Groups Projects
Commit 5defb25a authored by Mark Haines's avatar Mark Haines
Browse files

Use get_users_in_room to count the number of room members rather than using read_receipts

parent e4054abf
No related branches found
No related tags found
No related merge requests found
...@@ -107,7 +107,9 @@ class BulkPushRuleEvaluator: ...@@ -107,7 +107,9 @@ class BulkPushRuleEvaluator:
users_dict.items(), [event], {event.event_id: 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 = {} condition_cache = {}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment