chore: wait for joined room's membership to be updated before redirected to space details (#2685)
This commit is contained in:
parent
8468818ee4
commit
4ebe40ae9a
1 changed files with 1 additions and 4 deletions
|
|
@ -88,16 +88,13 @@ class PangeaPublicRoomBottomSheetState
|
|||
final result = await showFutureLoadingDialog<String>(
|
||||
context: context,
|
||||
future: () async {
|
||||
if (chunk != null && client.getRoomById(chunk!.roomId) != null) {
|
||||
return chunk!.roomId;
|
||||
}
|
||||
final roomId = await client.joinRoom(
|
||||
roomAlias ?? chunk!.roomId,
|
||||
serverName: via,
|
||||
);
|
||||
|
||||
if (client.getRoomById(roomId) == null) {
|
||||
await client.waitForRoomInSync(roomId);
|
||||
await client.waitForRoomInSync(roomId, join: true);
|
||||
}
|
||||
return roomId;
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue