Merge pull request #5237 from pangeachat/5223-error-page-appears-when-user-rejoins-left-course-via-public-course-list
fix: account for left rooms in join public course flow
This commit is contained in:
commit
7ecd6ce3c8
1 changed files with 3 additions and 3 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue