reply to pop up fix display name

This commit is contained in:
10G Meow 2022-11-20 13:39:20 +02:00
parent 4791f9f16e
commit ae8d65be8d

View file

@ -114,7 +114,7 @@
<v-row class="ma-0 pa-0">
<div v-if="replyToEvent" class="row">
<div class="col">
<div class="font-weight-medium">{{ $t("message.replying_to", { user: replyToEvent.sender.name }) }}</div>
<div class="font-weight-medium">{{ $t("message.replying_to", { user: senderDisplayName }) }}</div>
<div v-if="replyToContentType === 'm.text'" class="reply-text" :title="replyToEvent.getContent().body">
{{ replyToEvent.getContent().body | latestReply }}
</div>
@ -546,6 +546,9 @@ export default {
},
computed: {
senderDisplayName() {
return this.room.getMember(this.replyToEvent.sender.userId).name;
},
currentUser() {
return this.$store.state.auth.user;
},