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())); Env::get().recentMessagesApiUrl.arg(this->getName()));
request.setCaller(QThread::currentThread()); request.setCaller(QThread::currentThread());
// can't be concurrent right now due to SignalVector // can't be concurrent right now due to SignalVector
request.setExecuteConcurrently(true); // request.setExecuteConcurrently(true);
request.onSuccess([weak = weakOf<Channel>(this)](auto result) -> Outcome { request.onSuccess([weak = weakOf<Channel>(this)](auto result) -> Outcome {
auto shared = weak.lock(); auto shared = weak.lock();
@ -635,10 +635,10 @@ void TwitchChannel::loadRecentMessages()
} }
} }
postToThread( // postToThread(
[shared, messages = std::move(allBuiltMessages)]() mutable { // [shared, messages = std::move(allBuiltMessages)]() mutable {
shared->addMessagesAtStart(messages); shared->addMessagesAtStart(allBuiltMessages);
}); // });
return Success; return Success;
}); });