Skip to content

Commit

Permalink
Merge branch 'main' into feat/handle-message-send-error/zos-707
Browse files Browse the repository at this point in the history
  • Loading branch information
domw30 committed Oct 5, 2023
2 parents 0b4635b + f8a9616 commit ca513f9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/lib/chat/matrix-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -166,13 +166,15 @@ export class MatrixClient implements IChatClient {
}

const options: ICreateRoomOpts = {
name,
preset: Preset.TrustedPrivateChat,
visibility: Visibility.Private,
invite: users.map((u) => u.matrixId),
is_direct: true,
initial_state,
};
if (name) {
options.name = name;
}

const result = await this.matrix.createRoom(options);
// Any room is only set as a DM based on a single user. We'll use the first one.
Expand Down

0 comments on commit ca513f9

Please sign in to comment.