Stop setting `auto_join` on space child events (#8863)

It's not a specified property and not even used.
pull/28217/head
Travis Ralston 2022-06-27 01:28:02 +02:00 committed by GitHub
parent 9bbb29a1a2
commit 97a9af42d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

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