chore: if room membership is leave after join room, wait for join sync before redirecting (#2693)

This commit is contained in:
ggurdin 2025-05-06 14:09:56 -04:00 committed by GitHub
parent ed376aed06
commit a8ad92e051
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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;