mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2024-11-28 07:19:32 +01:00
Merge branch 'krille/keyverifydialog' into 'main'
fix: key verification dialog button order See merge request famedly/fluffychat!352
This commit is contained in:
commit
4561424a53
@ -205,15 +205,15 @@ class _KeyVerificationPageState extends State<KeyVerificationDialog> {
|
|||||||
],
|
],
|
||||||
mainAxisSize: MainAxisSize.min,
|
mainAxisSize: MainAxisSize.min,
|
||||||
);
|
);
|
||||||
buttons.add(AdaptiveFlatButton(
|
|
||||||
child: Text(widget.l10n.theyMatch),
|
|
||||||
onPressed: () => widget.request.acceptSas(),
|
|
||||||
));
|
|
||||||
buttons.add(AdaptiveFlatButton(
|
buttons.add(AdaptiveFlatButton(
|
||||||
textColor: Colors.red,
|
textColor: Colors.red,
|
||||||
child: Text(widget.l10n.theyDontMatch),
|
child: Text(widget.l10n.theyDontMatch),
|
||||||
onPressed: () => widget.request.rejectSas(),
|
onPressed: () => widget.request.rejectSas(),
|
||||||
));
|
));
|
||||||
|
buttons.add(AdaptiveFlatButton(
|
||||||
|
child: Text(widget.l10n.theyMatch),
|
||||||
|
onPressed: () => widget.request.acceptSas(),
|
||||||
|
));
|
||||||
break;
|
break;
|
||||||
case KeyVerificationState.waitingSas:
|
case KeyVerificationState.waitingSas:
|
||||||
var acceptText = widget.request.sasTypes.contains('emoji')
|
var acceptText = widget.request.sasTypes.contains('emoji')
|
||||||
|
Loading…
Reference in New Issue
Block a user