For direct chats, set history visibility to "invited"
Also use "initial_state" to set admin(s).
This commit is contained in:
parent
663932beb1
commit
f096350473
1 changed files with 11 additions and 2 deletions
|
|
@ -872,7 +872,17 @@ export default {
|
|||
type: "m.room.history_visibility",
|
||||
state_key: "",
|
||||
content: {
|
||||
history_visibility: "joined",
|
||||
history_visibility: "invited",
|
||||
},
|
||||
},
|
||||
{
|
||||
type: "m.room.power_levels",
|
||||
state_key: "",
|
||||
content: {
|
||||
users: {
|
||||
[this.currentUserId]: 100,
|
||||
[userId]: 100,
|
||||
},
|
||||
},
|
||||
},
|
||||
],
|
||||
|
|
@ -881,7 +891,6 @@ export default {
|
|||
return this.matrixClient
|
||||
.createRoom(createRoomOptions)
|
||||
.then(({ room_id, room_alias }) => {
|
||||
this.makeAdmin(room_id, userId); // Make the other user an equal
|
||||
resolve(this.getRoom(room_alias || room_id));
|
||||
})
|
||||
.catch((error) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue