chore: Correctly remove knockRestricted from possible join rules

pull/2264/head
Christian Kußowski 5 days ago
parent d6dcbe0421
commit 8bf46a3878
No known key found for this signature in database
GPG Key ID: E067ECD60F1A0652

@ -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…
Cancel
Save