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

onboarding
Krille Fear 3 years ago
parent 3a37d41ba6
commit bd341feef5

@ -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;

Loading…
Cancel
Save