Allow guest users access to messages in rooms they have joined

There should be no difference between guest users and non-guest users in terms
of access to messages. Define the semantics of the is_peeking argument to
filter_events_for_clients (slightly) better; interpret it appropriately, and
set it correctly from /sync.
This commit is contained in:
Richard van der Hoff 2016-02-19 11:41:02 +00:00
parent 200de16440
commit b71ca2b014
3 changed files with 42 additions and 14 deletions

View file

@ -103,7 +103,7 @@ class BulkPushRuleEvaluator:
users_dict = yield self.store.are_guests(self.rules_by_user.keys())
filtered_by_user = yield handler._filter_events_for_clients(
filtered_by_user = yield handler.filter_events_for_clients(
users_dict.items(), [event], {event.event_id: current_state}
)