This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Check for space membership during a remote join of a restricted room. #9763
Check for space membership during a remote join of a restricted room. #9763
Changes from 3 commits
902987c
861f40a
94bdb01
683d02d
bb6d71c
af7a679
b25de51
778391a
0b4f1a8
9df28be
c8e2d1f
9ffd521
9fe4b0a
4e3de96
d0644b8
acc63f6
0f3e373
6f162ed
808386d
f5f9421
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Much of this logic (and the if-statement below) is now duplicated between this and local joins in
RoomMemberHandler._local_membership_update
. I wonder if we should instead updatecan_join_without_invite
to raise aSynapseError
and try to push some of this logic in there?The local join logic has a couple of interleaved bits though (it needs
prev_member_event_id
andnewly_joined
for something else and it seems gross to return those from this).There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think it would be the end of the world to have this logic in both
_local_membership_update
andcan_join_without_invite
, to save us from duplicating theif newly_joined and not is_invite
condition. I don't think it matters too much though.