Fix make both user admin on DM create
authorAjay Bura <ajbura@gmail.com>
Mon, 11 Oct 2021 05:31:37 +0000 (11:01 +0530)
committerKrishan <33421343+kfiven@users.noreply.github.com>
Mon, 25 Oct 2021 12:29:57 +0000 (17:59 +0530)
Signed-off-by: Ajay Bura <ajbura@gmail.com>
src/client/action/room.js

index 08e73e214c545fa67bc631be4248e55bdc8ee185..c887d247a8494ee4d6b1ee7d7f7cf1ac462f94af 100644 (file)
@@ -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) {