mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
Implement Randers00's recent-messages API (WIP)
This commit is contained in:
parent
66294ed99b
commit
81a4bff131
1 changed files with 2 additions and 4 deletions
|
@ -577,11 +577,9 @@ Outcome TwitchChannel::parseLiveStatus(const rapidjson::Document &document)
|
||||||
void TwitchChannel::loadRecentMessages()
|
void TwitchChannel::loadRecentMessages()
|
||||||
{
|
{
|
||||||
static QString genericURL =
|
static QString genericURL =
|
||||||
"https://tmi.twitch.tv/api/rooms/%1/recent_messages?client_id=" +
|
"https://recent-messages.robotty.de/v1/recent-messages/%1";
|
||||||
getDefaultClientID();
|
|
||||||
|
|
||||||
NetworkRequest request(genericURL.arg(this->roomId()));
|
NetworkRequest request(genericURL.arg(this->getName()));
|
||||||
request.makeAuthorizedV5(getDefaultClientID());
|
|
||||||
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);
|
||||||
|
|
Loading…
Reference in a new issue