parent
1f4970368a
commit
3ed27e9f63
3 changed files with 4 additions and 4 deletions
|
|
@ -198,7 +198,7 @@ export default {
|
||||||
},
|
},
|
||||||
|
|
||||||
userDisplayName() {
|
userDisplayName() {
|
||||||
return this.$matrix.userDisplayName;
|
return this.$matrix.currentUserDisplayName;
|
||||||
},
|
},
|
||||||
|
|
||||||
userAvatar() {
|
userAvatar() {
|
||||||
|
|
@ -218,7 +218,7 @@ export default {
|
||||||
if (!this.currentUser || !this.currentUser.userId) {
|
if (!this.currentUser || !this.currentUser.userId) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
return (this.userDisplayName || this.currentUser.userId.substring(1))
|
return (this.currentUserDisplayName || this.currentUser.userId.substring(1))
|
||||||
.substring(0, 1)
|
.substring(0, 1)
|
||||||
.toUpperCase();
|
.toUpperCase();
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -144,7 +144,7 @@ export default {
|
||||||
if (!this.$matrix.currentUser) {
|
if (!this.$matrix.currentUser) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
return (this.$matrix.userDisplayName || this.$matrix.currentUserId.substring(1)).substring(0, 1).toUpperCase();
|
return (this.$matrix.currentUserDisplayName || this.$matrix.currentUserId.substring(1)).substring(0, 1).toUpperCase();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|
|
||||||
|
|
@ -53,7 +53,7 @@ export default {
|
||||||
currentUserDisplayName() {
|
currentUserDisplayName() {
|
||||||
if (this.ready) {
|
if (this.ready) {
|
||||||
const user = this.matrixClient.getUser(this.currentUserId) || {}
|
const user = this.matrixClient.getUser(this.currentUserId) || {}
|
||||||
return user.displayName;
|
return this.userDisplayName || user.displayName;
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue