From: Ajay Bura Date: Mon, 11 Oct 2021 05:31:37 +0000 (+0530) Subject: Fix make both user admin on DM create X-Git-Tag: v1.4.0~23 X-Git-Url: https://git.wafflesoft.org/?a=commitdiff_plain;h=824a7f20953450605888e658ce89f8b441f17590;p=cinny.git Fix make both user admin on DM create Signed-off-by: Ajay Bura --- diff --git a/src/client/action/room.js b/src/client/action/room.js index 08e73e2..c887d24 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) {