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:
N Pex 2023-05-11 12:00:12 +00:00
commit ab2cf301c4

View file

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