mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
Option to hide moderated messages (timed out messages)
This commit is contained in:
parent
3f41dfeff9
commit
562bdae09f
|
@ -126,9 +126,13 @@ void MessageLayout::actuallyLayout(int width, MessageElementFlags _flags)
|
||||||
}
|
}
|
||||||
|
|
||||||
for (const auto &element : this->message_->elements)
|
for (const auto &element : this->message_->elements)
|
||||||
|
{
|
||||||
|
if (!(getSettings()->removeModerated &&
|
||||||
|
this->message_->flags.has(MessageFlag::Disabled)))
|
||||||
{
|
{
|
||||||
element->addToContainer(*this->container_, _flags);
|
element->addToContainer(*this->container_, _flags);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (addTest)
|
if (addTest)
|
||||||
{
|
{
|
||||||
|
|
|
@ -41,6 +41,8 @@ public:
|
||||||
BoolSetting separateMessages = {"/appearance/messages/separateMessages",
|
BoolSetting separateMessages = {"/appearance/messages/separateMessages",
|
||||||
false};
|
false};
|
||||||
BoolSetting compactEmotes = {"/appearance/messages/compactEmotes", true};
|
BoolSetting compactEmotes = {"/appearance/messages/compactEmotes", true};
|
||||||
|
BoolSetting removeModerated = {"/appearance/messages/removeModerated",
|
||||||
|
false};
|
||||||
|
|
||||||
// BoolSetting collapseLongMessages =
|
// BoolSetting collapseLongMessages =
|
||||||
// {"/appearance/messages/collapseLongMessages", false};
|
// {"/appearance/messages/collapseLongMessages", false};
|
||||||
|
|
|
@ -210,6 +210,7 @@ void GeneralPage::initLayout(SettingsLayout &layout)
|
||||||
layout.addCheckbox("Alternate background color", s.alternateMessages);
|
layout.addCheckbox("Alternate background color", s.alternateMessages);
|
||||||
// layout.addCheckbox("Mark last message you read");
|
// layout.addCheckbox("Mark last message you read");
|
||||||
// layout.addDropdown("Last read message style", {"Default"});
|
// layout.addDropdown("Last read message style", {"Default"});
|
||||||
|
layout.addCheckbox("Remove moderated messages", s.removeModerated);
|
||||||
|
|
||||||
layout.addTitle("Emotes");
|
layout.addTitle("Emotes");
|
||||||
layout.addDropdown<float>(
|
layout.addDropdown<float>(
|
||||||
|
|
Loading…
Reference in a new issue