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
+12
View File
@@ -252,6 +252,12 @@ void TwitchIrcServer::initialize()
auto now = QDateTime::currentDateTime();
chan->addOrReplaceClearChat(
MessageBuilder::makeClearChatMessage(now, actor), now);
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();
}
});
});
@@ -317,6 +323,12 @@ void TwitchIrcServer::initialize()
msg->flags.set(MessageFlag::PubSub);
chan->addOrReplaceTimeout(msg.release(),
QDateTime::currentDateTime());
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();
}
});
});