parent
2b3f99c421
commit
6d97fd030d
9 changed files with 240 additions and 42 deletions
28
src/components/roomInfoMixin.js
Normal file
28
src/components/roomInfoMixin.js
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
export default {
|
||||
computed: {
|
||||
room() {
|
||||
return this.$matrix.currentRoom;
|
||||
},
|
||||
|
||||
roomName() {
|
||||
if (this.room) {
|
||||
return this.room.name;
|
||||
}
|
||||
return "";
|
||||
},
|
||||
|
||||
roomTopic() {
|
||||
if (this.room) {
|
||||
return this.room.topic;
|
||||
}
|
||||
return "";
|
||||
},
|
||||
|
||||
roomAvatar() {
|
||||
if (this.room) {
|
||||
return this.room.avatar;
|
||||
}
|
||||
return "";
|
||||
},
|
||||
},
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue