From 193a0d89af2500ae466f240075bc96a112f8c68a Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Tue, 21 Jul 2020 09:31:22 +0100 Subject: [PATCH] Prefix message previews for emotes with a * Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --- src/i18n/strings/en_EN.json | 42 +------------------ .../room-list/previews/MessageEventPreview.ts | 2 +- 2 files changed, 2 insertions(+), 42 deletions(-) diff --git a/src/i18n/strings/en_EN.json b/src/i18n/strings/en_EN.json index 998d582853..56ea3d854d 100644 --- a/src/i18n/strings/en_EN.json +++ b/src/i18n/strings/en_EN.json @@ -437,50 +437,10 @@ "%(senderName)s started a call": "%(senderName)s started a call", "Waiting for answer": "Waiting for answer", "%(senderName)s is calling": "%(senderName)s is calling", - "You created the room": "You created the room", - "%(senderName)s created the room": "%(senderName)s created the room", - "You made the chat encrypted": "You made the chat encrypted", - "%(senderName)s made the chat encrypted": "%(senderName)s made the chat encrypted", - "You made history visible to new members": "You made history visible to new members", - "%(senderName)s made history visible to new members": "%(senderName)s made history visible to new members", - "You made history visible to anyone": "You made history visible to anyone", - "%(senderName)s made history visible to anyone": "%(senderName)s made history visible to anyone", - "You made history visible to future members": "You made history visible to future members", - "%(senderName)s made history visible to future members": "%(senderName)s made history visible to future members", - "You were invited": "You were invited", - "%(targetName)s was invited": "%(targetName)s was invited", - "You left": "You left", - "%(targetName)s left": "%(targetName)s left", - "You were kicked (%(reason)s)": "You were kicked (%(reason)s)", - "%(targetName)s was kicked (%(reason)s)": "%(targetName)s was kicked (%(reason)s)", - "You were kicked": "You were kicked", - "%(targetName)s was kicked": "%(targetName)s was kicked", - "You rejected the invite": "You rejected the invite", - "%(targetName)s rejected the invite": "%(targetName)s rejected the invite", - "You were uninvited": "You were uninvited", - "%(targetName)s was uninvited": "%(targetName)s was uninvited", - "You were banned (%(reason)s)": "You were banned (%(reason)s)", - "%(targetName)s was banned (%(reason)s)": "%(targetName)s was banned (%(reason)s)", - "You were banned": "You were banned", - "%(targetName)s was banned": "%(targetName)s was banned", - "You joined": "You joined", - "%(targetName)s joined": "%(targetName)s joined", - "You changed your name": "You changed your name", - "%(targetName)s changed their name": "%(targetName)s changed their name", - "You changed your avatar": "You changed your avatar", - "%(targetName)s changed their avatar": "%(targetName)s changed their avatar", - "%(senderName)s %(emote)s": "%(senderName)s %(emote)s", + "* %(senderName)s %(emote)s": "* %(senderName)s %(emote)s", "%(senderName)s: %(message)s": "%(senderName)s: %(message)s", - "You changed the room name": "You changed the room name", - "%(senderName)s changed the room name": "%(senderName)s changed the room name", "%(senderName)s: %(reaction)s": "%(senderName)s: %(reaction)s", "%(senderName)s: %(stickerName)s": "%(senderName)s: %(stickerName)s", - "You uninvited %(targetName)s": "You uninvited %(targetName)s", - "%(senderName)s uninvited %(targetName)s": "%(senderName)s uninvited %(targetName)s", - "You invited %(targetName)s": "You invited %(targetName)s", - "%(senderName)s invited %(targetName)s": "%(senderName)s invited %(targetName)s", - "You changed the room topic": "You changed the room topic", - "%(senderName)s changed the room topic": "%(senderName)s changed the room topic", "New spinner design": "New spinner design", "Message Pinning": "Message Pinning", "Custom user status messages": "Custom user status messages", diff --git a/src/stores/room-list/previews/MessageEventPreview.ts b/src/stores/room-list/previews/MessageEventPreview.ts index 86cb51ef15..deed7dcf2c 100644 --- a/src/stores/room-list/previews/MessageEventPreview.ts +++ b/src/stores/room-list/previews/MessageEventPreview.ts @@ -59,7 +59,7 @@ export class MessageEventPreview implements IPreview { } if (msgtype === 'm.emote') { - return _t("%(senderName)s %(emote)s", {senderName: getSenderName(event), emote: body}); + return _t("* %(senderName)s %(emote)s", {senderName: getSenderName(event), emote: body}); } if (isSelf(event) || !shouldPrefixMessagesIn(event.getRoomId(), tagId)) {