Set room history visibility to "joined"

Issue #169
This commit is contained in:
N-Pex 2021-10-13 15:34:21 +02:00
parent 6f13783dcb
commit 75ade37892
2 changed files with 40 additions and 19 deletions

View file

@ -380,6 +380,13 @@ export default {
algorithm: "m.megolm.v1.aes-sha2", algorithm: "m.megolm.v1.aes-sha2",
}, },
}, },
{
type: "m.room.history_visibility",
state_key: "",
content: {
history_visibility: "joined"
}
}
], ],
}; };
} else { } else {
@ -403,6 +410,13 @@ export default {
guest_access: "forbidden", guest_access: "forbidden",
}, },
}, },
{
type: "m.room.history_visibility",
state_key: "",
content: {
history_visibility: "joined"
}
}
], ],
}; };
} }

View file

@ -643,8 +643,15 @@ export default {
guest_access: "forbidden", guest_access: "forbidden",
}, },
}, },
{
type: "m.room.history_visibility",
state_key: "",
content: {
history_visibility: "joined",
},
},
], ],
invite: [userId] invite: [userId],
}; };
return this.matrixClient return this.matrixClient
.createRoom(createRoomOptions) .createRoom(createRoomOptions)