Fix make both user admin on DM create
Signed-off-by: Ajay Bura <ajbura@gmail.com>
This commit is contained in:
@@ -143,6 +143,7 @@ async function create(opts) {
|
|||||||
is_direct: opts.isDirect === true,
|
is_direct: opts.isDirect === true,
|
||||||
invite: opts.invite || [],
|
invite: opts.invite || [],
|
||||||
initial_state: [],
|
initial_state: [],
|
||||||
|
preset: opts.isDirect === true ? 'trusted_private_chat' : undefined,
|
||||||
};
|
};
|
||||||
|
|
||||||
if (opts.isPublic !== true && opts.isEncrypted === true) {
|
if (opts.isPublic !== true && opts.isEncrypted === true) {
|
||||||
|
|||||||
Reference in New Issue
Block a user