Merge pull request #2433 from nextcloud/allow-guest-option-is-enabled-when-guests-disallowed

Fix wrong guests access option status
This commit is contained in:
Tim Krüger 2022-09-27 16:52:22 +02:00 committed by GitHub
commit 033edaa262
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -58,6 +58,8 @@ class GuestAccessHelper(
if (conversation.hasPassword) {
guestAccessPasswordSwitch.isChecked = true
}
} else {
guestAccessAllowSwitch.isChecked = false
}
binding.guestAccessView.guestAccessAllowSwitch.setOnClickListener {