Don't set avatar and display name if they haven't changed.
Related to issue #40.
This commit is contained in:
parent
8555436bc7
commit
bdd6977728
7 changed files with 94 additions and 33 deletions
14
src/App.vue
14
src/App.vue
|
|
@ -81,6 +81,20 @@ export default {
|
|||
},
|
||||
},
|
||||
watch: {
|
||||
'$route' (to, ignoredFrom) {
|
||||
var title = "Keanu Weblite";
|
||||
if (to.meta.title) {
|
||||
title += " - " + to.meta.title;
|
||||
}
|
||||
if (to.meta.includeRoom) {
|
||||
if (this.$matrix.currentRoom) {
|
||||
title += " - " + (this.$matrix.currentRoom.summary.info.title || this.$matrix.currentRoom.roomId);
|
||||
} else if (this.$matrix.currentRoomId) {
|
||||
title += " - " + (this.$matrix.currentRoomId);
|
||||
}
|
||||
}
|
||||
document.title = title;
|
||||
},
|
||||
currentUser: {
|
||||
immediate: true,
|
||||
handler(ignorednewVal, ignoredoldVal) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue