fix: properly stack/merge PubSub & IRC timeouts again (#5855)

This commit is contained in:
pajlada
2025-01-25 12:13:33 +01:00
committed by GitHub
parent 3214e0a80b
commit 8554bd4d65
6 changed files with 64 additions and 8 deletions
+6 -2
View File
@@ -319,7 +319,9 @@ void TwitchIrcServer::initialize()
}
postToThread([chan, action] {
MessageBuilder msg(action);
// TODO: Can we utilize some pubsub time field? maybe not worth
auto time = QDateTime::currentDateTime();
MessageBuilder msg(action, time);
msg->flags.set(MessageFlag::PubSub);
chan->addOrReplaceTimeout(msg.release(),
QDateTime::currentDateTime());
@@ -399,7 +401,9 @@ void TwitchIrcServer::initialize()
return;
}
auto msg = MessageBuilder(action).release();
// TODO: Can we utilize some pubsub time field? maybe not worth
auto time = QDateTime::currentDateTime();
auto msg = MessageBuilder(action, time).release();
postToThread([chan, msg] {
chan->addMessage(msg, MessageContext::Original);