mirror of
https://mau.dev/maunium/synapse.git
synced 2024-12-15 10:23:53 +01:00
Use get_users_in_room to count the number of room members rather than using read_receipts
This commit is contained in:
parent
e4054abfdc
commit
5defb25ac6
1 changed files with 3 additions and 1 deletions
|
@ -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 = {}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue