aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorAjay Ramachandran <[email protected]>2021-08-03 12:45:34 -0400
committerAjay Ramachandran <[email protected]>2021-08-03 12:45:34 -0400
commit81d0c0cab1bc42038d74ae9136a6f93d4b182651 (patch)
tree8e36ecde87cd37d22f6ee5961e3eefb14fb67e02 /src
parentde1f18612ff4fd507a6d6821003131a7513847a5 (diff)
downloadSponsorBlock-81d0c0cab1bc42038d74ae9136a6f93d4b182651.tar.gz
SponsorBlock-81d0c0cab1bc42038d74ae9136a6f93d4b182651.zip
Don't display pipe in chatr name if not needed
Diffstat (limited to 'src')
-rw-r--r--src/js-components/chat.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/js-components/chat.ts b/src/js-components/chat.ts
index 4bbb4a2b..91dc6720 100644
--- a/src/js-components/chat.ts
+++ b/src/js-components/chat.ts
@@ -36,7 +36,7 @@ export async function openWarningChat(warningMessage: string): Promise<void> {
const publicUserID = await utils.getHash(Config.config.userID);
openChat({
- displayName: `${userName ? `${userName} | `: ``}${userName !== publicUserID ? publicUserID : ``}`,
+ displayName: `${userName ? userName : ``}${userName !== publicUserID ? ` | ${publicUserID}` : ``}`,
composerInitialValue: `I got a warning and want to know what I need to do to improve. ` +
`Warning reason: ${warningMessage.match(/Warning reason: '(.+)'/)[1]}`,
customDescription: chrome.i18n.getMessage("warningChatInfo")