diff --git a/lib/pages/chat/encryption_button.dart b/lib/pages/chat/encryption_button.dart index 1cc82ca4..30653817 100644 --- a/lib/pages/chat/encryption_button.dart +++ b/lib/pages/chat/encryption_button.dart @@ -91,9 +91,8 @@ class _EncryptionButtonState extends State { oneUserInvalid = true; } } - color = oneUserInvalid - ? Colors.red - : (allUsersValid ? Colors.green : Colors.orange); + if (oneUserInvalid) color = Colors.red; + if (!allUsersValid) color = Colors.orange; } else if (!widget.room.encrypted && widget.room.joinRules != JoinRules.public) { color = Colors.red;