-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow external users from private room #172
Allow external users from private room #172
Conversation
I guess that we need heavy testing on this PR to approve it or would end to end testing be easy to implement? |
[EDIT] As discussed ,we will look at this later on , we need to check unit test |
content => cli.sendStateEvent(room.roomId, RoomAccessRulesEventId, content, ""), | ||
onError, | ||
); | ||
const { rule: accessRule = undefined } = contentAccessRule || {}; |
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.
pourquoi le default undefined, sachant qu'on a deja || {}
?
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.
cela permet d'assigner accessRule
à undefined
si contentAccessRule
est lui aussi `undefined
Si on enleve {}
, on peut avoir l'erreur suivante : Error: Cannot read properties of undefined (reading 'rule')
@@ -105,10 +114,42 @@ const JoinRuleSettings = ({ room, promptUpgrade, aliasWarning, onError, beforeCh | |||
const definitions: IDefinition<JoinRule>[] = []; | |||
|
|||
if (joinRule === JoinRule.Invite) { |
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.
Is this selecting private rooms only ? So far we were are copying android's implementation for determining what type of room it is :
https://github.com/tchapgouv/tchap-android/blob/develop/vector/src/main/java/fr/gouv/tchap/core/utils/RoomUtils.kt#L31
(selection on isEncrypted and accessRules)
It would be nice to have a utils function (in TchapUtils for example) that checks what type of room it is.
v2 had a isRoomForum function for example, we could do something similar
I cannot invite externs. I get a silent fail, nothing happens. Running locally, with prod backend, after a clearing of node_modules and rebuild : Reproduce : create a room (with or without externs). Invite an extern by email. Edit : I will try testing on the review app tomorrow, in case it is a local problem. (will move review app to prod backend for testing) |
(closing and reopening PR to trigger the review app, it had been deleted from lack of activity) |
When testing with my account, on prod backend, it works when you paste the email, rather than type it. There are issues, unrelated to this PR, with :
Will file separate issues. So, testing passes ! |
About the disabled toggle : it's actually fine. |
For the extra info, it's complicated to add because the toggle is part of the "Public" radiobutton description. |
Allow external users from private room
Create a private room opened to external users(bug fix)
This PR allow external users from a private room but also create a private room opened to external users(fix a small bug)
Before:
2. Settings in v2 : we expect that the room is opened to external => this is not the case here
3. Settings of the room in v4 : we expect that the room is opened to external => this is not the case here
After:
2. Settings in v2 : we expect that the room is opened to external => OK
3. Settings of the room in v4 : we expect that the room is opened to external => OK