diff --git a/src/stores/spaces/SpaceStore.ts b/src/stores/spaces/SpaceStore.ts index f00b527c1d..605e9d2a36 100644 --- a/src/stores/spaces/SpaceStore.ts +++ b/src/stores/spaces/SpaceStore.ts @@ -316,11 +316,10 @@ export class SpaceStoreClass extends AsyncStoreWithClient { return []; }; - public addRoomToSpace(space: Room, roomId: string, via: string[], suggested = false, autoJoin = false) { + public addRoomToSpace(space: Room, roomId: string, via: string[], suggested = false) { return this.matrixClient.sendStateEvent(space.roomId, EventType.SpaceChild, { via, suggested, - auto_join: autoJoin, }, roomId); }