Fix make both user admin on DM create

Signed-off-by: Ajay Bura <ajbura@gmail.com>
This commit is contained in:
Ajay Bura 2021-10-11 11:01:37 +05:30 committed by Krishan
parent b4d4cefe23
commit 824a7f2095

View 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) {