Make Twitch message history loading optional (On by default)

This commit is contained in:
Rasmus Karlsson
2019-05-25 11:24:10 +02:00
parent 79e4e05a4a
commit e1483bfd8a
3 changed files with 12 additions and 2 deletions
+5
View File
@@ -602,6 +602,11 @@ Outcome TwitchChannel::parseLiveStatus(const rapidjson::Document &document)
void TwitchChannel::loadRecentMessages()
{
if (!getSettings()->loadTwitchMessageHistoryOnConnect)
{
return;
}
static QString genericURL = [] {
QString url("https://recent-messages.robotty.de/api/v2/recent-messages/"
"%1?clearchatToNotice=true");