mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
fix: build user timeout/ban message in GUI thread (#3665)
Co-authored-by: pajlada <rasmus.karlsson@pajlada.com>
This commit is contained in:
parent
c6db023ee3
commit
0b9f62188c
|
@ -269,11 +269,10 @@ void Application::initPubsub()
|
|||
return;
|
||||
}
|
||||
|
||||
MessageBuilder msg(action);
|
||||
msg->flags.set(MessageFlag::PubSub);
|
||||
|
||||
postToThread([chan, msg = msg.release()] {
|
||||
chan->addOrReplaceTimeout(msg);
|
||||
postToThread([chan, action] {
|
||||
MessageBuilder msg(action);
|
||||
msg->flags.set(MessageFlag::PubSub);
|
||||
chan->addOrReplaceTimeout(msg.release());
|
||||
});
|
||||
});
|
||||
this->twitch->pubsub->signals_.moderation.messageDeleted.connect(
|
||||
|
|
Loading…
Reference in a new issue