|
|
|
@ -48,11 +48,8 @@ class SearchController extends State<Search> {
|
|
|
|
final newRoomId = await Matrix.of(context)
|
|
|
|
final newRoomId = await Matrix.of(context)
|
|
|
|
.client
|
|
|
|
.client
|
|
|
|
.joinRoom(alias?.isNotEmpty ?? false ? alias : roomId);
|
|
|
|
.joinRoom(alias?.isNotEmpty ?? false ? alias : roomId);
|
|
|
|
await Matrix.of(context)
|
|
|
|
await Matrix.of(context).client.onSync.stream.firstWhere(
|
|
|
|
.client
|
|
|
|
(update) => update.rooms?.join?.containsKey(newRoomId) ?? false);
|
|
|
|
.onRoomUpdate
|
|
|
|
|
|
|
|
.stream
|
|
|
|
|
|
|
|
.firstWhere((r) => r.id == newRoomId);
|
|
|
|
|
|
|
|
return newRoomId;
|
|
|
|
return newRoomId;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|