fix: build user timeout/ban message in GUI thread (#3665)
Co-authored-by: pajlada <rasmus.karlsson@pajlada.com>
This commit is contained in:
+4
-5
@@ -269,11 +269,10 @@ void Application::initPubsub()
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
MessageBuilder msg(action);
|
postToThread([chan, action] {
|
||||||
msg->flags.set(MessageFlag::PubSub);
|
MessageBuilder msg(action);
|
||||||
|
msg->flags.set(MessageFlag::PubSub);
|
||||||
postToThread([chan, msg = msg.release()] {
|
chan->addOrReplaceTimeout(msg.release());
|
||||||
chan->addOrReplaceTimeout(msg);
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
this->twitch->pubsub->signals_.moderation.messageDeleted.connect(
|
this->twitch->pubsub->signals_.moderation.messageDeleted.connect(
|
||||||
|
|||||||
Reference in New Issue
Block a user