projects
/
cinny.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b4d4cef
)
Fix make both user admin on DM create
author
Ajay Bura
<ajbura@gmail.com>
Mon, 11 Oct 2021 05:31:37 +0000
(11:01 +0530)
committer
Krishan
<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
patch
|
blob
|
history
diff --git
a/src/client/action/room.js
b/src/client/action/room.js
index 08e73e214c545fa67bc631be4248e55bdc8ee185..c887d247a8494ee4d6b1ee7d7f7cf1ac462f94af 100644
(file)
--- 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) {