mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2024-09-09 22:22:07 +00:00
Only fetch local pushers
This commit is contained in:
parent
3847fa38c4
commit
80a6a445fa
@ -151,12 +151,14 @@ class PushRuleStore(SQLBaseStore):
|
|||||||
# generating them for bot / AS users etc, we only do so for people who've
|
# generating them for bot / AS users etc, we only do so for people who've
|
||||||
# sent a read receipt into the room.
|
# sent a read receipt into the room.
|
||||||
|
|
||||||
local_users_in_room = yield self._get_joined_users_from_context(
|
users_in_room = yield self._get_joined_users_from_context(
|
||||||
room_id, state_group, current_state_ids,
|
room_id, state_group, current_state_ids,
|
||||||
on_invalidate=cache_context.invalidate,
|
on_invalidate=cache_context.invalidate,
|
||||||
event=event,
|
event=event,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
local_users_in_room = set(u for u in users_in_room if self.hs.is_mine_id(u))
|
||||||
|
|
||||||
# users in the room who have pushers need to get push rules run because
|
# users in the room who have pushers need to get push rules run because
|
||||||
# that's how their pushers work
|
# that's how their pushers work
|
||||||
if_users_with_pushers = yield self.get_if_users_have_pushers(
|
if_users_with_pushers = yield self.get_if_users_have_pushers(
|
||||||
|
Loading…
Reference in New Issue
Block a user