Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
Fix joining a suggested room switching space away
Browse files Browse the repository at this point in the history
  • Loading branch information
t3chguy committed Aug 1, 2023
1 parent 053b564 commit b088825
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/stores/spaces/SpaceStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -929,6 +929,8 @@ export class SpaceStoreClass extends AsyncStoreWithClient<IState> {
this._suggestedRooms = this._suggestedRooms.filter((r) => r.room_id !== room.roomId);
if (numSuggestedRooms !== this._suggestedRooms.length) {
this.emit(UPDATE_SUGGESTED_ROOMS, this._suggestedRooms);
// If the suggested room was present in the list then we know we don't need to switch space
return;
}

// if the room currently being viewed was just joined then switch to its related space
Expand Down

0 comments on commit b088825

Please sign in to comment.