You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-07-25 17:02:04 +03:00
Move control of room initial state into createRoom
This changes `createRoom` so it has more control of the room's initial state, and appends state for different features, rather resetting the entire state array. This makes room for also controlling encryption state in the next change.
This commit is contained in:
@ -961,9 +961,9 @@ export default createReactClass({
|
||||
const CreateRoomDialog = sdk.getComponent('dialogs.CreateRoomDialog');
|
||||
const modal = Modal.createTrackedDialog('Create Room', '', CreateRoomDialog);
|
||||
|
||||
const [shouldCreate, createOpts] = await modal.finished;
|
||||
const [shouldCreate, opts] = await modal.finished;
|
||||
if (shouldCreate) {
|
||||
createRoom({createOpts});
|
||||
createRoom(opts);
|
||||
}
|
||||
},
|
||||
|
||||
|
Reference in New Issue
Block a user