From 8292b0c646ed105126fc4a2d56dc9c3ff352a853 Mon Sep 17 00:00:00 2001 From: phosit Date: Thu, 9 Jan 2025 18:48:12 +0100 Subject: [PATCH] Don't show warning on aichat messages AI's chat messages are always received by every client. It's not necesarry to warn about them. Defect introduced in e04506814a. Refs: #7466 --- .../mods/public/gui/session/chat/ChatMessageFormatPlayer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/binaries/data/mods/public/gui/session/chat/ChatMessageFormatPlayer.js b/binaries/data/mods/public/gui/session/chat/ChatMessageFormatPlayer.js index 85633aa6ef..d0e598054e 100644 --- a/binaries/data/mods/public/gui/session/chat/ChatMessageFormatPlayer.js +++ b/binaries/data/mods/public/gui/session/chat/ChatMessageFormatPlayer.js @@ -113,7 +113,7 @@ class ChatMessageFormatPlayer msg.context = addresseeType.context; // For observers only permit public- and observer-chat and PM to observers - if (isPlayerObserver(senderID)) + if (msg.player === undefined && isPlayerObserver(senderID)) { if (isPM && !g_IsObserver) {