Update src/stores/SpaceStore.tsx

Co-authored-by: Travis Ralston <travisr@matrix.org>
pull/21833/head
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
1 changed files with 1 additions and 1 deletions

View File

@ -630,7 +630,7 @@ export class SpaceStoreClass extends AsyncStoreWithClient<IState> {
private onRoom = (room: Room, newMembership?: string, oldMembership?: string) => {
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
return;
}