diff --git a/src/services/matrix.service.js b/src/services/matrix.service.js index 44c6127..658f9bf 100644 --- a/src/services/matrix.service.js +++ b/src/services/matrix.service.js @@ -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) => {