progress: remove MessageFlag::HighlightedWhisper

This commit is contained in:
Rasmus Karlsson
2026-08-23 13:02:02 +02:00
parent 88dacbf2cd
commit 5ae35660a5
3 changed files with 3 additions and 5 deletions
+1 -2
View File
@@ -35,8 +35,7 @@ Message::~Message()
ScrollbarHighlight Message::getScrollBarHighlight() const
{
if (this->flags.has(MessageFlag::Highlighted) ||
this->flags.has(MessageFlag::HighlightedWhisper))
if (this->flags.has(MessageFlag::Highlighted))
{
return {
this->highlightColor,
+1 -1
View File
@@ -30,7 +30,7 @@ enum class MessageFlag : std::int64_t {
AutoMod = (1LL << 14),
RecentMessage = (1LL << 15),
Whisper = (1LL << 16),
HighlightedWhisper = (1LL << 17),
//
Debug = (1LL << 18),
Similar = (1LL << 19),
RedeemedHighlight = (1LL << 20),
+1 -2
View File
@@ -371,8 +371,7 @@ void MessageLayout::updateBuffer(QPixmap *buffer,
return ctx.messageColors.regularBg;
}();
if ((this->message_->flags.has(MessageFlag::Highlighted) ||
this->message_->flags.has(MessageFlag::HighlightedWhisper)) &&
if (this->message_->flags.has(MessageFlag::Highlighted) &&
!this->flags.has(MessageLayoutFlag::IgnoreHighlights))
{
// NOTE: As we move more things into Highlighted, and less things to use custom flags for their color,