chore: if room membership is leave after join room, wait for join sync before redirecting (#2693)
This commit is contained in:
parent
ed376aed06
commit
a8ad92e051
1 changed files with 2 additions and 1 deletions
|
|
@ -93,7 +93,8 @@ class PangeaPublicRoomBottomSheetState
|
|||
serverName: via,
|
||||
);
|
||||
|
||||
if (client.getRoomById(roomId) == null) {
|
||||
final room = client.getRoomById(roomId);
|
||||
if (room == null || room.membership != Membership.join) {
|
||||
await client.waitForRoomInSync(roomId, join: true);
|
||||
}
|
||||
return roomId;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue