浏览代码

Fix wrong guests access option status

Before this change after enabling and disabling the guest access option,
the option stays enabled.

Resolves: #2378

Signed-off-by: Tim Krüger <t@timkrueger.me>
Tim Krüger 2 年之前
父节点
当前提交
05cfb97459
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      app/src/main/java/com/nextcloud/talk/conversation/info/GuestAccessHelper.kt

+ 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 {