mirror of
https://github.com/krille-chan/fluffychat
synced 2024-08-11 10:33:43 +00:00
fix: Wait for user device keys before start verification
This commit is contained in:
parent
23fe757599
commit
e6bbb8f980
1 changed files with 6 additions and 3 deletions
|
@ -353,9 +353,12 @@ class BootstrapDialogState extends State<BootstrapDialog> {
|
|||
: () async {
|
||||
final req = await showFutureLoadingDialog(
|
||||
context: context,
|
||||
future: () => widget.client
|
||||
.userDeviceKeys[widget.client.userID!]!
|
||||
.startVerification(),
|
||||
future: () async {
|
||||
await widget.client.updateUserDeviceKeys();
|
||||
return widget.client
|
||||
.userDeviceKeys[widget.client.userID!]!
|
||||
.startVerification();
|
||||
},
|
||||
);
|
||||
if (req.error != null) return;
|
||||
await KeyVerificationDialog(request: req.result!)
|
||||
|
|
Loading…
Reference in a new issue