From 1bd58a01037056656ada3d392e752d9c023b2549 Mon Sep 17 00:00:00 2001 From: Ajay Bura Date: Mon, 11 Oct 2021 11:01:37 +0530 Subject: [PATCH] Fix make both user admin on DM create Signed-off-by: Ajay Bura --- src/client/action/room.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/client/action/room.js b/src/client/action/room.js index 08e73e21..c887d247 100644 --- a/src/client/action/room.js +++ b/src/client/action/room.js @@ -143,6 +143,7 @@ async function create(opts) { is_direct: opts.isDirect === true, invite: opts.invite || [], initial_state: [], + preset: opts.isDirect === true ? 'trusted_private_chat' : undefined, }; if (opts.isPublic !== true && opts.isEncrypted === true) {