Experimental cache support.

This commit is contained in:
Black Hat 2018-03-03 22:14:04 +08:00
parent b88cc6964d
commit b6d94382a9
1 changed files with 2 additions and 0 deletions

View File

@ -46,6 +46,7 @@ void Controller::logout() {
void Controller::connected() {
setUserID(m_connection->userId());
setToken(m_connection->accessToken());
m_connection->loadState();
resync();
setIsLogin(true);
}
@ -53,6 +54,7 @@ void Controller::connected() {
void Controller::resync() {
qDebug() << "Syncing Matrix.";
m_connection->sync(30000);
m_connection->saveState();
}
void Controller::reconnect() {