From 824a7f20953450605888e658ce89f8b441f17590 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) {