fix: Wait for user device keys before start verification

pull/800/head
Krille 2 years ago
parent 23fe757599
commit e6bbb8f980
No known key found for this signature in database
GPG Key ID: E067ECD60F1A0652

@ -353,9 +353,12 @@ class BootstrapDialogState extends State<BootstrapDialog> {
: () async { : () async {
final req = await showFutureLoadingDialog( final req = await showFutureLoadingDialog(
context: context, context: context,
future: () => widget.client future: () async {
await widget.client.updateUserDeviceKeys();
return widget.client
.userDeviceKeys[widget.client.userID!]! .userDeviceKeys[widget.client.userID!]!
.startVerification(), .startVerification();
},
); );
if (req.error != null) return; if (req.error != null) return;
await KeyVerificationDialog(request: req.result!) await KeyVerificationDialog(request: req.result!)

Loading…
Cancel
Save