mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2024-11-06 20:19:30 +01:00
fix: Display loading dialog on start DM
This commit is contained in:
parent
d9bc1de6c7
commit
51d9a56058
@ -83,8 +83,12 @@ class UserBottomSheetController extends State<UserBottomSheet> {
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 'message':
|
case 'message':
|
||||||
final roomId = await widget.user.startDirectChat();
|
final roomIdResult = await showFutureLoadingDialog(
|
||||||
VRouter.of(widget.outerContext).to('/rooms/$roomId');
|
context: context,
|
||||||
|
future: () => widget.user.startDirectChat(),
|
||||||
|
);
|
||||||
|
if (roomIdResult.error != null) return;
|
||||||
|
VRouter.of(widget.outerContext).to('/rooms/${roomIdResult.result}');
|
||||||
Navigator.of(context, rootNavigator: false).pop();
|
Navigator.of(context, rootNavigator: false).pop();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user