chore: wait for joined room's membership to be updated before redirected to space details (#2685)

pull/2245/head
ggurdin 6 months ago committed by GitHub
parent 8468818ee4
commit 4ebe40ae9a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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…
Cancel
Save