forked from mystiq/hydrogen-web
only store sync token when it changes
This commit is contained in:
parent
e49c416fae
commit
d87444824d
1 changed files with 4 additions and 2 deletions
|
@ -48,8 +48,10 @@ export default class Session {
|
|||
}
|
||||
|
||||
applySync(syncToken, accountData, txn) {
|
||||
this._session.syncToken = syncToken;
|
||||
txn.session.set(this._session);
|
||||
if (syncToken !== this._session.syncToken) {
|
||||
this._session.syncToken = syncToken;
|
||||
txn.session.set(this._session);
|
||||
}
|
||||
}
|
||||
|
||||
get syncToken() {
|
||||
|
|
Loading…
Reference in a new issue