Merge branch '475-room-settings-for-dm-invite-link-style-rooms' into 'dev'
Resolve "Room settings for DM / invite link style rooms" See merge request keanuapp/keanuapp-weblite!186
This commit is contained in:
commit
ab2cf301c4
1 changed files with 11 additions and 2 deletions
|
|
@ -872,7 +872,17 @@ export default {
|
||||||
type: "m.room.history_visibility",
|
type: "m.room.history_visibility",
|
||||||
state_key: "",
|
state_key: "",
|
||||||
content: {
|
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
|
return this.matrixClient
|
||||||
.createRoom(createRoomOptions)
|
.createRoom(createRoomOptions)
|
||||||
.then(({ room_id, room_alias }) => {
|
.then(({ room_id, room_alias }) => {
|
||||||
this.makeAdmin(room_id, userId); // Make the other user an equal
|
|
||||||
resolve(this.getRoom(room_alias || room_id));
|
resolve(this.getRoom(room_alias || room_id));
|
||||||
})
|
})
|
||||||
.catch((error) => {
|
.catch((error) => {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue