Update src/stores/room-list/algorithms/Algorithm.ts
Co-authored-by: Travis Ralston <travpc@gmail.com>pull/21833/head
parent
f21aedc6cf
commit
bfe3d648e2
|
@ -186,7 +186,7 @@ export class Algorithm extends EventEmitter {
|
||||||
}
|
}
|
||||||
|
|
||||||
private async doUpdateStickyRoom(val: Room) {
|
private async doUpdateStickyRoom(val: Room) {
|
||||||
// no-op sticky rooms
|
// no-op sticky rooms for spaces - they're effectively virtual rooms
|
||||||
if (val?.isSpaceRoom() && val.getMyMembership() !== "invite") val = null;
|
if (val?.isSpaceRoom() && val.getMyMembership() !== "invite") val = null;
|
||||||
|
|
||||||
// Note throughout: We need async so we can wait for handleRoomUpdate() to do its thing,
|
// Note throughout: We need async so we can wait for handleRoomUpdate() to do its thing,
|
||||||
|
|
Loading…
Reference in New Issue