From 18a8d06b2339b33476197c708730338839ee70f6 Mon Sep 17 00:00:00 2001 From: Haxxer Date: Tue, 20 Aug 2024 21:22:09 +0100 Subject: [PATCH] Fixed chat messages --- changelog.md | 1 + src/API/chat-api.js | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/changelog.md b/changelog.md index 5efe12f0..e178f980 100644 --- a/changelog.md +++ b/changelog.md @@ -7,6 +7,7 @@ - Fixed custom categories not being applied to items when created through merchant populate items - Fixed item piles sometimes resetting their item pile flags when first created - Fixed versions of D&D5e 3.2.0 and onwards keeping item attunement when transferred between actors, will now clear attunement properly +- Fixed chat messages not showing up properly when setting configured to be private or blind ## Version 3.0.9 diff --git a/src/API/chat-api.js b/src/API/chat-api.js index 00cad161..15d22ff4 100644 --- a/src/API/chat-api.js +++ b/src/API/chat-api.js @@ -650,7 +650,9 @@ export default class ChatAPI { chatData.type = ChatAPI.CHAT_MESSAGE_STYLES.WHISPER; } - } else if (chatData.whisper.length) { + } + + if (chatData.whisper.length) { chatData.whisper = Array.from(new Set(chatData.whisper)); }