More progress on tab-complete

There are missing parts to the "account-based" emotes that needs to be
completed before emote completion can be considered done. For now, when
I've been testing, I've been manually injecting the oauthClient and
oauthToken to the settings file with the `user_subscriptions` scope
This commit is contained in:
Rasmus Karlsson
2017-07-23 14:16:13 +02:00
parent e4fc6c25e6
commit 3bf111a091
19 changed files with 212 additions and 69 deletions
+5
View File
@@ -1,5 +1,7 @@
#include "accountmanager.hpp"
#include <pajlada/settings/setting.hpp>
namespace chatterino {
namespace {
@@ -25,6 +27,9 @@ AccountManager::AccountManager()
if (!envUsername.isEmpty() && !envOauthToken.isEmpty()) {
this->addTwitchUser(twitch::TwitchUser(envUsername, envOauthToken, ""));
}
pajlada::Settings::Setting<std::string>::set(
"/accounts/current/roomID", "11148817", pajlada::Settings::SettingOption::DoNotWriteToJSON);
}
twitch::TwitchUser &AccountManager::getTwitchAnon()