mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-09 04:57:09 +03:00
Don't display pipe in chatr name if not needed
This commit is contained in:
@@ -36,7 +36,7 @@ export async function openWarningChat(warningMessage: string): Promise<void> {
|
|||||||
const publicUserID = await utils.getHash(Config.config.userID);
|
const publicUserID = await utils.getHash(Config.config.userID);
|
||||||
|
|
||||||
openChat({
|
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. ` +
|
composerInitialValue: `I got a warning and want to know what I need to do to improve. ` +
|
||||||
`Warning reason: ${warningMessage.match(/Warning reason: '(.+)'/)[1]}`,
|
`Warning reason: ${warningMessage.match(/Warning reason: '(.+)'/)[1]}`,
|
||||||
customDescription: chrome.i18n.getMessage("warningChatInfo")
|
customDescription: chrome.i18n.getMessage("warningChatInfo")
|
||||||
|
|||||||
Reference in New Issue
Block a user