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:
|
// Knock is only supported for rooms up from version 7:
|
||||||
if (roomVersionInt != null && roomVersionInt <= 6) {
|
if (roomVersionInt != null && roomVersionInt <= 6) {
|
||||||
joinRules.remove(JoinRules.knock);
|
joinRules.remove(JoinRules.knock);
|
||||||
|
joinRules.remove(JoinRules.knockRestricted);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (knownSpaceParents.isEmpty) {
|
if (knownSpaceParents.isEmpty) {
|
||||||
joinRules.remove(JoinRules.restricted);
|
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:
|
// If an unsupported join rule is the current join rule, display it:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue