Update src/stores/SpaceStore.tsx

Co-authored-by: Travis Ralston <travisr@matrix.org>
This commit is contained in:
Michael Telatynski 2021-09-14 15:50:51 +01:00 committed by GitHub
parent 87c9551507
commit 919270ff0c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;
} }