From d94b5d66d31065e7bf7960ddf65550ffe4f78fe2 Mon Sep 17 00:00:00 2001 From: Rasmus Karlsson Date: Sun, 3 Nov 2024 14:40:58 +0100 Subject: [PATCH] doc: document the way blocked term and other similar timeout messages are sometimes hidden --- src/messages/layouts/MessageLayout.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/messages/layouts/MessageLayout.cpp b/src/messages/layouts/MessageLayout.cpp index 303abc44a..dc51113f6 100644 --- a/src/messages/layouts/MessageLayout.cpp +++ b/src/messages/layouts/MessageLayout.cpp @@ -160,12 +160,18 @@ void MessageLayout::actuallyLayout(const MessageLayoutContext &ctx) if (hideBlockedTermAutomodMessages && this->message_->flags.has(MessageFlag::AutoModBlockedTerm)) { + // NOTE: This hides the message but it will make the message re-appear if moderation message hiding is no longer active, and the layout is re-laid-out. + // This is only the case for the moderation messages that don't get filtered during creation. + // We should decide which is the correct method & apply that everywhere continue; } if (this->message_->flags.has(MessageFlag::Timeout) || this->message_->flags.has(MessageFlag::Untimeout)) { + // NOTE: This hides the message but it will make the message re-appear if moderation message hiding is no longer active, and the layout is re-laid-out. + // This is only the case for the moderation messages that don't get filtered during creation. + // We should decide which is the correct method & apply that everywhere if (hideModerationActions || (getSettings()->streamerModeHideModActions && getApp()->getStreamerMode()->isEnabled()))