aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/components/chat_list_item/chat_list_item.js10
-rw-r--r--src/i18n/en.json1
2 files changed, 7 insertions, 4 deletions
diff --git a/src/components/chat_list_item/chat_list_item.js b/src/components/chat_list_item/chat_list_item.js
index b6b0519a..bee1ad53 100644
--- a/src/components/chat_list_item/chat_list_item.js
+++ b/src/components/chat_list_item/chat_list_item.js
@@ -37,12 +37,14 @@ const ChatListItem = {
}
},
messageForStatusContent () {
- const content = this.chat.lastMessage ? (this.attachmentInfo || this.chat.lastMessage.content) : ''
-
+ const message = this.chat.lastMessage
+ const isYou = message && message.account_id === this.currentUser.id
+ const content = message ? (this.attachmentInfo || message.content) : ''
+ const messagePreview = isYou ? `<i>${this.$t('chats.you')}</i> ${content}` : content
return {
summary: '',
- statusnet_html: content,
- text: content,
+ statusnet_html: messagePreview,
+ text: messagePreview,
attachments: []
}
}
diff --git a/src/i18n/en.json b/src/i18n/en.json
index 5cc75460..796a527c 100644
--- a/src/i18n/en.json
+++ b/src/i18n/en.json
@@ -786,6 +786,7 @@
"password_reset_required_but_mailer_is_disabled": "You must reset your password, but password reset is disabled. Please contact your instance administrator."
},
"chats": {
+ "you": "You:",
"message_user": "Message {nickname}",
"delete": "Delete",
"chats": "Chats",