Browse Source

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

Fix wrong guests access option status
Tim Krüger 2 years ago
parent
commit
033edaa262

+ 2 - 0
app/src/main/java/com/nextcloud/talk/conversation/info/GuestAccessHelper.kt

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