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.5.0~50 X-Git-Url: https://git.wafflesoft.org/?a=commitdiff_plain;h=1bd58a01037056656ada3d392e752d9c023b2549;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) {