mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2024-11-24 04:59:26 +01:00
fix: Minor glitch in bootstrap
This commit is contained in:
parent
08dd2d7d22
commit
107a3aac86
@ -8,6 +8,7 @@ import 'package:fluffychat/utils/platform_infos.dart';
|
|||||||
import 'package:flutter/cupertino.dart';
|
import 'package:flutter/cupertino.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter_gen/gen_l10n/l10n.dart';
|
import 'package:flutter_gen/gen_l10n/l10n.dart';
|
||||||
|
import 'package:future_loading_dialog/future_loading_dialog.dart';
|
||||||
|
|
||||||
import 'key_verification_dialog.dart';
|
import 'key_verification_dialog.dart';
|
||||||
|
|
||||||
@ -178,10 +179,13 @@ class _BootstrapDialogState extends State<BootstrapDialog> {
|
|||||||
buttons.add(AdaptiveFlatButton(
|
buttons.add(AdaptiveFlatButton(
|
||||||
label: L10n.of(context).transferFromAnotherDevice,
|
label: L10n.of(context).transferFromAnotherDevice,
|
||||||
onPressed: () async {
|
onPressed: () async {
|
||||||
final req = await widget
|
final req = await showFutureLoadingDialog(
|
||||||
.client.userDeviceKeys[widget.client.userID]
|
context: context,
|
||||||
.startVerification();
|
future: () => widget.client.userDeviceKeys[widget.client.userID]
|
||||||
await KeyVerificationDialog(request: req).show(context);
|
.startVerification(),
|
||||||
|
);
|
||||||
|
if (req.error != null) return;
|
||||||
|
await KeyVerificationDialog(request: req.result).show(context);
|
||||||
Navigator.of(context, rootNavigator: false).pop();
|
Navigator.of(context, rootNavigator: false).pop();
|
||||||
},
|
},
|
||||||
));
|
));
|
||||||
|
Loading…
Reference in New Issue
Block a user