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
+1
View File
@@ -15,6 +15,7 @@
- Bugfix: Closing a usercard will no longer cause stop-logging messages to be generated in channel logs. (#5828)
- Bugfix: Fixed tabs not scaling to the default scale when changing the scale from a non-default value. (#5794, #5833)
- Bugfix: Fixed deleted messages not immediately disappearing when "Hide deleted messages" is enabled. (#5844, #5854)
- Bugfix: Fixed announcements not showing up in mentions tab. (#5857)
- Dev: Highlight checks now use non-capturing groups for the boundaries. (#5784)
- Dev: Updated Conan dependencies. (#5776)
- Dev: Replaced usage of `parseTime` with `serverReceivedTime` for clearchat messages. (#5824, #5855)
+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);
@@ -151,7 +151,7 @@
"url": ""
}
],
"flags": "Collapsed|Subscription",
"flags": "Highlighted|Collapsed|Subscription",
"highlightColor": "#64c466ff",
"id": "8c26e1ab-b50c-4d9d-bc11-3fd57a941d90",
"localizedName": "",