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()));
|
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;
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue