fix: Encryption button is orange in public rooms

This commit is contained in:
Krille Fear 2022-12-30 09:00:01 +01:00
parent 99b0ee194c
commit b65357576c

View File

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