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 6c97d08027
commit 1bd58a0103

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