fix: account for left rooms in join public course flow

This commit is contained in:
ggurdin 2026-01-16 12:51:26 -05:00
parent aea5cdef79
commit 971fc5508e
No known key found for this signature in database
GPG key ID: A01CB41737CBB478

View file

@ -169,12 +169,12 @@ class SelectedCourseController extends State<SelectedCourse>
: await client.joinRoom(widget.roomChunk!.roomId);
Room? room = client.getRoomById(roomId);
if (!knock && room == null) {
await client.waitForRoomInSync(roomId);
if (!knock && room?.membership != Membership.join) {
await client.waitForRoomInSync(roomId, join: true);
room = client.getRoomById(roomId);
}
if (knock && room == null) {
if (knock) {
Navigator.of(context).pop();
await showOkAlertDialog(
context: context,