|
|
@ -25,10 +25,7 @@ class ProfileBottomSheet extends StatelessWidget {
|
|
|
|
final client = Matrix.of(context).client;
|
|
|
|
final client = Matrix.of(context).client;
|
|
|
|
final result = await showFutureLoadingDialog<String>(
|
|
|
|
final result = await showFutureLoadingDialog<String>(
|
|
|
|
context: context,
|
|
|
|
context: context,
|
|
|
|
future: () async {
|
|
|
|
future: () => client.startDirectChat(userId),
|
|
|
|
final roomId = await client.startDirectChat(userId);
|
|
|
|
|
|
|
|
return roomId;
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
);
|
|
|
|
);
|
|
|
|
if (result.error == null) {
|
|
|
|
if (result.error == null) {
|
|
|
|
VRouter.of(context).toSegments(['rooms', result.result]);
|
|
|
|
VRouter.of(context).toSegments(['rooms', result.result]);
|
|
|
|