fix: Allow announcements to show up in /mentions (#5857)

This commit is contained in:
Matthias Kronberg
2025-01-26 15:36:55 +01:00
committed by GitHub
parent 8554bd4d65
commit 8c836fe46c
3 changed files with 9 additions and 2 deletions
+7 -1
View File
@@ -1094,7 +1094,13 @@ void IrcMessageHandler::addMessage(Communi::IrcMessage *message,
if (isSub)
{
msg->flags.set(MessageFlag::Subscription);
msg->flags.unset(MessageFlag::Highlighted);
if (tags.value("msg-id") != "announcement")
{
// Announcements are currently tagged as subscriptions,
// but we want them to be able to show up in mentions
msg->flags.unset(MessageFlag::Highlighted);
}
}
sink.applySimilarityFilters(msg);