Merge branch 'krille/keyverifydialog' into 'main'

fix: key verification dialog button order

See merge request famedly/fluffychat!352
This commit is contained in:
Krille Fear 2021-01-20 08:40:24 +00:00
commit 4561424a53

View File

@ -205,15 +205,15 @@ class _KeyVerificationPageState extends State<KeyVerificationDialog> {
],
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')