change: Remove verification icon from user bottom sheet

This commit is contained in:
Christian Pauly 2021-02-27 10:47:20 +01:00
parent a52b7e8f16
commit 6c58a55bef

View File

@ -179,28 +179,6 @@ class UserBottomSheet extends StatelessWidget {
),
title: Text(user.calcDisplayname()),
actions: [
if (verificationStatus != null)
IconButton(
icon: Icon(
Icons.lock_outlined,
color: {
UserVerifiedStatus.unknownDevice: Colors.red,
UserVerifiedStatus.verified: Colors.green,
}[verificationStatus] ??
Colors.orange,
),
tooltip: {
UserVerifiedStatus.unknownDevice:
L10n.of(context).userNotVerified,
UserVerifiedStatus.verified:
L10n.of(context).userVerified,
}[verificationStatus] ??
L10n.of(context).userUnknownVerification,
onPressed: () =>
verificationStatus == UserVerifiedStatus.unknown
? _verifyAction(context)
: null,
),
if (user.id != user.room.client.userID)
PopupMenuButton(
itemBuilder: (_) => items,