From 1b43948a9ecc2ea552865fde398d648af3ff990f Mon Sep 17 00:00:00 2001 From: Noah Petherbridge Date: Wed, 4 Dec 2024 21:27:37 -0800 Subject: [PATCH] Suppress confusing ChatServer message sent to booted admins --- src/App.vue | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/App.vue b/src/App.vue index 61c3421..70ed3a6 100644 --- a/src/App.vue +++ b/src/App.vue @@ -3109,6 +3109,14 @@ export default { } }, pushHistory({ channel, username, message, action = "message", isChatServer, isChatClient, messageID, timestamp = null, unshift = false }) { + + // Ignore possibly-confusing ChatServer messages sent to admins. + // TODO: add a 'super-admin' tier separately to operator that still sees these. + if (isChatServer && (message.match(/ has booted you off of their camera!$/) || message.match(/ had booted you off their camera before, and won't be notified of your watch.$/))) { + // Redirect it to the debug log channel. + channel = DebugChannelID; + } + // Default channel = your current channel. if (!channel) { channel = this.channel;