Makes it possible to hide one man spam (#1496)

This commit is contained in:
hemirt
2020-02-02 14:31:37 +01:00
committed by GitHub
parent 497ce2d2f2
commit 1fd64be7f5
9 changed files with 164 additions and 1 deletions
+1
View File
@@ -33,6 +33,7 @@ enum class MessageFlag : uint32_t {
Whisper = (1 << 16),
HighlightedWhisper = (1 << 17),
Debug = (1 << 18),
Similar = (1 << 19),
};
using MessageFlags = FlagsEnum<MessageFlag>;
+6
View File
@@ -141,6 +141,12 @@ void MessageLayout::actuallyLayout(int width, MessageElementFlags flags)
continue;
}
if (getSettings()->hideSimilar &&
this->message_->flags.has(MessageFlag::Similar))
{
continue;
}
element->addToContainer(*this->container_, flags);
}