fix: visually hide deleted messages immediately (#5844)

This commit is contained in:
nerix
2025-01-24 18:28:13 +01:00
committed by GitHub
parent 35b15c4088
commit 16aec8eac1
2 changed files with 8 additions and 0 deletions
+1
View File
@@ -14,6 +14,7 @@
- Bugfix: Fixed tabs not scaling to the default scale when changing the scale from a non-default value. (#5794)
- 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 disappearing when "Hide deleted messages" is enabled. (#5844)
- 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)
@@ -523,6 +523,13 @@ void IrcMessageHandler::handleClearMessageMessage(Communi::IrcMessage *message)
chan->addMessage(MessageBuilder::makeDeletionMessageFromIRC(msg),
MessageContext::Original);
}
if (getSettings()->hideModerated && !tags.contains("historical"))
{
// XXX: This is expensive. We could use a layout request if the layout
// would store the previous message flags.
getApp()->getWindows()->forceLayoutChannelViews();
}
}
void IrcMessageHandler::handleUserStateMessage(Communi::IrcMessage *message)