fix: more force relayout on timeout/clear/delete (#5854)

This commit is contained in:
pajlada
2025-01-25 11:42:55 +01:00
committed by GitHub
parent 16aec8eac1
commit 3214e0a80b
6 changed files with 26 additions and 22 deletions
+6 -5
View File
@@ -468,15 +468,16 @@ void IrcMessageHandler::handleClearChatMessage(Communi::IrcMessage *message)
{
chan->disableAllMessages();
chan->addOrReplaceClearChat(std::move(clearChat.message), time);
return;
}
else
{
chan->addOrReplaceTimeout(std::move(clearChat.message), time);
}
chan->addOrReplaceTimeout(std::move(clearChat.message), time);
// refresh all
getApp()->getWindows()->repaintVisibleChatWidgets(chan.get());
if (getSettings()->hideModerated)
{
// XXX: This is expensive. We could use a layout request if the layout
// would store the previous message flags.
getApp()->getWindows()->forceLayoutChannelViews();
}
}