From b65357576c8369d2b7a2a19a959d11e2233ae34a Mon Sep 17 00:00:00 2001 From: Krille Fear Date: Fri, 30 Dec 2022 09:00:01 +0100 Subject: [PATCH] fix: Encryption button is orange in public rooms --- lib/pages/chat/encryption_button.dart | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/pages/chat/encryption_button.dart b/lib/pages/chat/encryption_button.dart index 1c4bef33..a7ad5742 100644 --- a/lib/pages/chat/encryption_button.dart +++ b/lib/pages/chat/encryption_button.dart @@ -33,8 +33,9 @@ class EncryptionButton extends StatelessWidget { color: room.joinRules != JoinRules.public && !room.encrypted ? Colors.red - : snapshot.data == - EncryptionHealthState.unverifiedDevices + : room.joinRules != JoinRules.public && + snapshot.data == + EncryptionHealthState.unverifiedDevices ? Colors.orange : null), onPressed: () => VRouter.of(context)