mirror of
https://github.com/krille-chan/fluffychat
synced 2024-09-17 09:35:12 +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 {
|
: () 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…
Reference in a new issue