mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
disabled concurrent loading of recent messages
it caused some twitch emotes to load improperly
This commit is contained in:
parent
96532be765
commit
294c2aecdc
|
@ -612,7 +612,7 @@ void TwitchChannel::loadRecentMessages()
|
|||
Env::get().recentMessagesApiUrl.arg(this->getName()));
|
||||
request.setCaller(QThread::currentThread());
|
||||
// can't be concurrent right now due to SignalVector
|
||||
request.setExecuteConcurrently(true);
|
||||
// request.setExecuteConcurrently(true);
|
||||
|
||||
request.onSuccess([weak = weakOf<Channel>(this)](auto result) -> Outcome {
|
||||
auto shared = weak.lock();
|
||||
|
@ -635,10 +635,10 @@ void TwitchChannel::loadRecentMessages()
|
|||
}
|
||||
}
|
||||
|
||||
postToThread(
|
||||
[shared, messages = std::move(allBuiltMessages)]() mutable {
|
||||
shared->addMessagesAtStart(messages);
|
||||
});
|
||||
// postToThread(
|
||||
// [shared, messages = std::move(allBuiltMessages)]() mutable {
|
||||
shared->addMessagesAtStart(allBuiltMessages);
|
||||
// });
|
||||
|
||||
return Success;
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue