disabled concurrent loading of recent messages

it caused some twitch emotes to load improperly
This commit is contained in:
fourtf 2019-08-13 13:12:09 +02:00
parent 96532be765
commit 294c2aecdc

View file

@ -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;
});