Simplify room creation and improve "room welcome header" for new rooms.
Issue #127.
This commit is contained in:
parent
11c09cd767
commit
6ca7a2040d
5 changed files with 112 additions and 25 deletions
|
|
@ -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: {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue