Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
Stop setting auto_join on space child events (#8863)
Browse files Browse the repository at this point in the history
It's not a specified property and not even used.
  • Loading branch information
turt2live authored Jun 26, 2022
1 parent 9bbb29a commit 97a9af4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/stores/spaces/SpaceStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -316,11 +316,10 @@ export class SpaceStoreClass extends AsyncStoreWithClient<IState> {
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);
}

Expand Down

0 comments on commit 97a9af4

Please sign in to comment.