chore: Correctly remove knockRestricted from possible join rules
This commit is contained in:
parent
d6dcbe0421
commit
8bf46a3878
1 changed files with 2 additions and 3 deletions
|
|
@ -54,13 +54,12 @@ class ChatAccessSettingsController extends State<ChatAccessSettings> {
|
|||
// Knock is only supported for rooms up from version 7:
|
||||
if (roomVersionInt != null && roomVersionInt <= 6) {
|
||||
joinRules.remove(JoinRules.knock);
|
||||
joinRules.remove(JoinRules.knockRestricted);
|
||||
}
|
||||
|
||||
if (knownSpaceParents.isEmpty) {
|
||||
joinRules.remove(JoinRules.restricted);
|
||||
if (roomVersionInt != null && roomVersionInt <= 6) {
|
||||
joinRules.remove(JoinRules.knockRestricted);
|
||||
}
|
||||
joinRules.remove(JoinRules.knockRestricted);
|
||||
}
|
||||
|
||||
// If an unsupported join rule is the current join rule, display it:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue