diff --git a/src/messages/layouts/MessageLayout.cpp b/src/messages/layouts/MessageLayout.cpp index 3dfb0e68e..a7ba26756 100644 --- a/src/messages/layouts/MessageLayout.cpp +++ b/src/messages/layouts/MessageLayout.cpp @@ -127,11 +127,12 @@ void MessageLayout::actuallyLayout(int width, MessageElementFlags _flags) for (const auto &element : this->message_->elements) { - if (!(getSettings()->removeModerated && - this->message_->flags.has(MessageFlag::Disabled))) + if (getSettings()->hideModerated && + this->message_->flags.has(MessageFlag::Disabled)) { - element->addToContainer(*this->container_, _flags); + continue; } + element->addToContainer(*this->container_, _flags); } if (addTest) diff --git a/src/providers/twitch/IrcMessageHandler.cpp b/src/providers/twitch/IrcMessageHandler.cpp index f5d8686f4..5e15e3682 100644 --- a/src/providers/twitch/IrcMessageHandler.cpp +++ b/src/providers/twitch/IrcMessageHandler.cpp @@ -203,7 +203,7 @@ void IrcMessageHandler::handleClearChatMessage(Communi::IrcMessage *message) // refresh all app->windows->repaintVisibleChatWidgets(chan.get()); - if (getSettings()->removeModerated) + if (getSettings()->hideModerated) { app->windows->forceLayoutChannelViews(); } diff --git a/src/singletons/Settings.hpp b/src/singletons/Settings.hpp index c041246e9..9dcd9a1be 100644 --- a/src/singletons/Settings.hpp +++ b/src/singletons/Settings.hpp @@ -41,8 +41,7 @@ public: BoolSetting separateMessages = {"/appearance/messages/separateMessages", false}; BoolSetting compactEmotes = {"/appearance/messages/compactEmotes", true}; - BoolSetting removeModerated = {"/appearance/messages/removeModerated", - false}; + BoolSetting hideModerated = {"/appearance/messages/hideModerated", false}; // BoolSetting collapseLongMessages = // {"/appearance/messages/collapseLongMessages", false}; diff --git a/src/widgets/settingspages/GeneralPage.cpp b/src/widgets/settingspages/GeneralPage.cpp index dc9fc9ad4..2e6b7b15b 100644 --- a/src/widgets/settingspages/GeneralPage.cpp +++ b/src/widgets/settingspages/GeneralPage.cpp @@ -210,7 +210,7 @@ void GeneralPage::initLayout(SettingsLayout &layout) layout.addCheckbox("Alternate background color", s.alternateMessages); // layout.addCheckbox("Mark last message you read"); // layout.addDropdown("Last read message style", {"Default"}); - layout.addCheckbox("Remove moderated messages", s.removeModerated); + layout.addCheckbox("Hide moderated messages", s.hideModerated); layout.addTitle("Emotes"); layout.addDropdown(