From b64ca3d75a80537a40482de1bfd60831d33e61a3 Mon Sep 17 00:00:00 2001 From: vyneer Date: Mon, 11 Dec 2023 23:56:31 +0300 Subject: [PATCH] feat: add /me support to new broadcasts --- assets/chat/js/messages/ChatBroadcastMessage.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/assets/chat/js/messages/ChatBroadcastMessage.js b/assets/chat/js/messages/ChatBroadcastMessage.js index 2a69ed88..65e62354 100644 --- a/assets/chat/js/messages/ChatBroadcastMessage.js +++ b/assets/chat/js/messages/ChatBroadcastMessage.js @@ -22,8 +22,14 @@ export default class ChatBroadcastMessage extends ChatEventMessage { user.innerText = this.user.displayName; const ctrl = document.createElement('span'); + ctrl.classList.toggle('ctrl'); ctrl.innerText = ': '; + if (this.slashme) { + ctrl.innerText = ''; + return [user, ctrl, ' ']; + } + return [user, ctrl]; }