mirror of
https://github.com/Novaloop-AG/healthchat-web.git
synced 2026-11-07 15:08:24 +00:00
Update src/stores/SpaceStore.tsx
Co-authored-by: Travis Ralston <travisr@matrix.org>
This commit is contained in:
committed by
GitHub
parent
87c9551507
commit
919270ff0c
@@ -630,7 +630,7 @@ export class SpaceStoreClass extends AsyncStoreWithClient<IState> {
|
|||||||
|
|
||||||
private onRoom = (room: Room, newMembership?: string, oldMembership?: string) => {
|
private onRoom = (room: Room, newMembership?: string, oldMembership?: string) => {
|
||||||
const roomMembership = room.getMyMembership();
|
const roomMembership = room.getMyMembership();
|
||||||
if (roomMembership === null) {
|
if (!roomMembership) {
|
||||||
// room is still being baked in the js-sdk, we'll process it at Room.myMembership instead
|
// room is still being baked in the js-sdk, we'll process it at Room.myMembership instead
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user