Only fetch local pushers

This commit is contained in:
Erik Johnston 2016-09-05 10:43:32 +01:00
parent 3847fa38c4
commit 80a6a445fa

View file

@ -151,12 +151,14 @@ class PushRuleStore(SQLBaseStore):
# generating them for bot / AS users etc, we only do so for people who've
# 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,
on_invalidate=cache_context.invalidate,
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
# that's how their pushers work
if_users_with_pushers = yield self.get_if_users_have_pushers(