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 eb429267b1
commit 86af401cfc

View File

@ -91,9 +91,8 @@ class _EncryptionButtonState extends State<EncryptionButton> {
oneUserInvalid = true; oneUserInvalid = true;
} }
} }
color = oneUserInvalid if (oneUserInvalid) color = Colors.red;
? Colors.red if (!allUsersValid) color = Colors.orange;
: (allUsersValid ? Colors.green : Colors.orange);
} else if (!widget.room.encrypted && } else if (!widget.room.encrypted &&
widget.room.joinRules != JoinRules.public) { widget.room.joinRules != JoinRules.public) {
color = Colors.red; color = Colors.red;