forked from MirrorHub/synapse
Fix /context/ visibiltiy rules
This commit is contained in:
parent
699be7d1be
commit
7f026792e1
1 changed files with 4 additions and 1 deletions
|
@ -375,12 +375,15 @@ class RoomContextHandler(BaseHandler):
|
||||||
|
|
||||||
now_token = yield self.hs.get_event_sources().get_current_token()
|
now_token = yield self.hs.get_event_sources().get_current_token()
|
||||||
|
|
||||||
|
users = yield self.store.get_users_in_room(room_id)
|
||||||
|
is_peeking = user.to_string() not in users
|
||||||
|
|
||||||
def filter_evts(events):
|
def filter_evts(events):
|
||||||
return filter_events_for_client(
|
return filter_events_for_client(
|
||||||
self.store,
|
self.store,
|
||||||
user.to_string(),
|
user.to_string(),
|
||||||
events,
|
events,
|
||||||
is_peeking=is_guest
|
is_peeking=is_peeking
|
||||||
)
|
)
|
||||||
|
|
||||||
event = yield self.store.get_event(event_id, get_prev_content=True,
|
event = yield self.store.get_event(event_id, get_prev_content=True,
|
||||||
|
|
Loading…
Reference in a new issue