Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
Already on GitHub? Sign in to your account
Allow guest users access to messages in rooms they have joined #587
Conversation
richvdh
assigned
NegativeMjark and
richvdh
and unassigned
NegativeMjark
Feb 19, 2016
richvdh
assigned
NegativeMjark
and unassigned
richvdh
Feb 19, 2016
richvdh
referenced this pull request
in matrix-org/sytest
Feb 19, 2016
Merged
Improve tests for history visibility #189
NegativeMjark
commented on an outdated diff
Feb 19, 2016
| return membership == Membership.INVITE | ||
| - return True | ||
| + # presumably visibility is "joined"; we weren't a member at the | ||
| + # time of the event, so we're done. |
NegativeMjark
Contributor
|
|
my bad. PTAL? |
richvdh
assigned
illicitonion
and unassigned
NegativeMjark
Feb 22, 2016
|
@illicitonion: please take a look |
|
@illicitonion: please take a look. Any idea what the special-case for RoomHistoryVisibility which i've currently commented-out is for? it appears to have been introduced by @erikjohnston in 41938af |
richvdh
referenced this pull request
Feb 22, 2016
Closed
handlers/_base: allow peeking users to see events in rooms they are members of #593
I'm guessing that it was so that users can see when the visibility changes from |
illicitonion
commented on the diff
Feb 22, 2016
| """ Returns dict of user_id -> list of events that user is allowed to | ||
| see. | ||
| + | ||
| + :param (str, bool) user_tuples: (user id, is_peeking) for each |
illicitonion
Contributor
|
illicitonion
commented on an outdated diff
Feb 22, 2016
| if membership == Membership.JOIN: | ||
| return True | ||
| if event.type == EventTypes.RoomHistoryVisibility: | ||
| - return not is_peeking | ||
| + # XXX why are m.room.history_visibility events special? |
illicitonion
Contributor
|
illicitonion
commented on an outdated diff
Feb 22, 2016
illicitonion
commented on an outdated diff
Feb 22, 2016
|
LGTM |
richvdh commentedFeb 19, 2016
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.
(fixes vector-im/vector-web#949)