Simplify room creation and improve "room welcome header" for new rooms.

Issue #127.
This commit is contained in:
N-Pex 2021-05-27 12:16:12 +02:00
parent 11c09cd767
commit 6ca7a2040d
5 changed files with 112 additions and 25 deletions

View file

@ -41,6 +41,13 @@ export default {
return "";
},
roomIsEncrypted() {
if (this.room) {
return this.$matrix.matrixClient.isRoomEncrypted(this.room.roomId);
}
return false;
},
publicRoomLink() {
if (this.room && this.roomJoinRule == "public") {
return this.$router.getRoomLink(
@ -49,6 +56,13 @@ export default {
}
return null;
},
roomHistory() {
if (this.room) {
return this.room.shouldEncryptForInvitedMembers()
}
return false;
}
},
watch: {
room: {