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

Make bulk_get_push_rules_for_room use get_joined_users_from_context cache #1068

Merged
merged 4 commits into from Sep 5, 2016

Conversation

erikjohnston
Copy link
Member

No description provided.

local_users_in_room = yield self._get_joined_users_from_context(
room_id, state_group, current_state_ids,
on_invalidate=cache_context.invalidate,
event=event,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does _get_joined_users_from_context only return the local users?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, point. Although it'd get filtered out by the get_if_users_have_pushers below

@NegativeMjark
Copy link
Contributor

LGTM

@NegativeMjark NegativeMjark reopened this Sep 5, 2016
@erikjohnston erikjohnston merged commit 940d4fa into develop Sep 5, 2016
@richvdh richvdh deleted the erikj/bulk_push branch December 1, 2016 14:09
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants