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 {
|
: () async {
|
||||||
final req = await showFutureLoadingDialog(
|
final req = await showFutureLoadingDialog(
|
||||||
context: context,
|
context: context,
|
||||||
future: () => widget.client
|
future: () async {
|
||||||
.userDeviceKeys[widget.client.userID!]!
|
await widget.client.updateUserDeviceKeys();
|
||||||
.startVerification(),
|
return widget.client
|
||||||
|
.userDeviceKeys[widget.client.userID!]!
|
||||||
|
.startVerification();
|
||||||
|
},
|
||||||
);
|
);
|
||||||
if (req.error != null) return;
|
if (req.error != null) return;
|
||||||
await KeyVerificationDialog(request: req.result!)
|
await KeyVerificationDialog(request: req.result!)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue