change: Encrypted by design, all users valid is normal not green

This commit is contained in:
Krille Fear 2021-11-13 18:47:05 +01:00
parent 3a37d41ba6
commit bd341feef5

View file

@ -91,9 +91,8 @@ class _EncryptionButtonState extends State<EncryptionButton> {
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;