From c5adfc2ab272c746f70165cc5d82cc7d100ac758 Mon Sep 17 00:00:00 2001 From: Christian Pauly Date: Wed, 20 Jan 2021 09:18:09 +0100 Subject: [PATCH] fix: key verification dialog button order --- lib/components/dialogs/key_verification_dialog.dart | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/components/dialogs/key_verification_dialog.dart b/lib/components/dialogs/key_verification_dialog.dart index 327e55a7..85fbe661 100644 --- a/lib/components/dialogs/key_verification_dialog.dart +++ b/lib/components/dialogs/key_verification_dialog.dart @@ -205,15 +205,15 @@ class _KeyVerificationPageState extends State { ], mainAxisSize: MainAxisSize.min, ); - buttons.add(AdaptiveFlatButton( - child: Text(widget.l10n.theyMatch), - onPressed: () => widget.request.acceptSas(), - )); buttons.add(AdaptiveFlatButton( textColor: Colors.red, child: Text(widget.l10n.theyDontMatch), onPressed: () => widget.request.rejectSas(), )); + buttons.add(AdaptiveFlatButton( + child: Text(widget.l10n.theyMatch), + onPressed: () => widget.request.acceptSas(), + )); break; case KeyVerificationState.waitingSas: var acceptText = widget.request.sasTypes.contains('emoji')