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>
This commit is contained in:
Tim Krüger 2022-09-27 13:07:47 +02:00
parent 51d4b54aa4
commit 05cfb97459
No known key found for this signature in database
GPG key ID: FECE3A7222C52A4E

View file

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