Prefix message previews for emotes with a *
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>pull/21833/head
parent
eb0e9ecab4
commit
193a0d89af
|
@ -437,50 +437,10 @@
|
||||||
"%(senderName)s started a call": "%(senderName)s started a call",
|
"%(senderName)s started a call": "%(senderName)s started a call",
|
||||||
"Waiting for answer": "Waiting for answer",
|
"Waiting for answer": "Waiting for answer",
|
||||||
"%(senderName)s is calling": "%(senderName)s is calling",
|
"%(senderName)s is calling": "%(senderName)s is calling",
|
||||||
"You created the room": "You created the room",
|
"* %(senderName)s %(emote)s": "* %(senderName)s %(emote)s",
|
||||||
"%(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: %(message)s": "%(senderName)s: %(message)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: %(reaction)s": "%(senderName)s: %(reaction)s",
|
||||||
"%(senderName)s: %(stickerName)s": "%(senderName)s: %(stickerName)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",
|
"New spinner design": "New spinner design",
|
||||||
"Message Pinning": "Message Pinning",
|
"Message Pinning": "Message Pinning",
|
||||||
"Custom user status messages": "Custom user status messages",
|
"Custom user status messages": "Custom user status messages",
|
||||||
|
|
|
@ -59,7 +59,7 @@ export class MessageEventPreview implements IPreview {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (msgtype === 'm.emote') {
|
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)) {
|
if (isSelf(event) || !shouldPrefixMessagesIn(event.getRoomId(), tagId)) {
|
||||||
|
|
Loading…
Reference in New Issue