only store sync token when it changes

This commit is contained in:
Bruno Windels 2019-02-16 02:59:10 +01:00
parent e49c416fae
commit d87444824d

View file

@ -48,8 +48,10 @@ export default class Session {
} }
applySync(syncToken, accountData, txn) { applySync(syncToken, accountData, txn) {
this._session.syncToken = syncToken; if (syncToken !== this._session.syncToken) {
txn.session.set(this._session); this._session.syncToken = syncToken;
txn.session.set(this._session);
}
} }
get syncToken() { get syncToken() {