Experimental cache support.
This commit is contained in:
parent
b88cc6964d
commit
b6d94382a9
|
@ -46,6 +46,7 @@ void Controller::logout() {
|
||||||
void Controller::connected() {
|
void Controller::connected() {
|
||||||
setUserID(m_connection->userId());
|
setUserID(m_connection->userId());
|
||||||
setToken(m_connection->accessToken());
|
setToken(m_connection->accessToken());
|
||||||
|
m_connection->loadState();
|
||||||
resync();
|
resync();
|
||||||
setIsLogin(true);
|
setIsLogin(true);
|
||||||
}
|
}
|
||||||
|
@ -53,6 +54,7 @@ void Controller::connected() {
|
||||||
void Controller::resync() {
|
void Controller::resync() {
|
||||||
qDebug() << "Syncing Matrix.";
|
qDebug() << "Syncing Matrix.";
|
||||||
m_connection->sync(30000);
|
m_connection->sync(30000);
|
||||||
|
m_connection->saveState();
|
||||||
}
|
}
|
||||||
|
|
||||||
void Controller::reconnect() {
|
void Controller::reconnect() {
|
||||||
|
|
Loading…
Reference in New Issue