mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
Make Twitch message history loading optional (On by default)
This commit is contained in:
parent
79e4e05a4a
commit
e1483bfd8a
3 changed files with 12 additions and 2 deletions
|
@ -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");
|
||||
|
|
|
@ -39,7 +39,8 @@ public:
|
|||
false};
|
||||
BoolSetting compactEmotes = {"/appearance/messages/compactEmotes", true};
|
||||
BoolSetting hideModerated = {"/appearance/messages/hideModerated", false};
|
||||
BoolSetting hideModerationActions = {"/appearance/messages/hideModerationActions", false};
|
||||
BoolSetting hideModerationActions = {
|
||||
"/appearance/messages/hideModerationActions", false};
|
||||
|
||||
// BoolSetting collapseLongMessages =
|
||||
// {"/appearance/messages/collapseLongMessages", false};
|
||||
|
@ -189,6 +190,8 @@ public:
|
|||
/// Misc
|
||||
IntSetting startUpNotification = {"/misc/startUpNotification", 0};
|
||||
QStringSetting currentVersion = {"/misc/currentVersion", ""};
|
||||
BoolSetting loadTwitchMessageHistoryOnConnect = {
|
||||
"/misc/twitch/loadMessageHistoryOnConnect", true};
|
||||
|
||||
QStringSetting cachePath = {"/cache/path", ""};
|
||||
|
||||
|
|
|
@ -274,8 +274,10 @@ void GeneralPage::initLayout(SettingsLayout &layout)
|
|||
layout.addSpacing(16);
|
||||
layout.addSeperator();
|
||||
|
||||
layout.addTitle2("Misc");
|
||||
layout.addTitle2("Miscellaneous (Twitch)");
|
||||
layout.addCheckbox("Show twitch whispers inline", s.inlineWhispers);
|
||||
layout.addCheckbox("Load message history on connect",
|
||||
s.loadTwitchMessageHistoryOnConnect);
|
||||
|
||||
/*
|
||||
layout.addTitle2("Cache");
|
||||
|
|
Loading…
Reference in a new issue