mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-22 19:14:52 +01:00
only store sync token when it changes
This commit is contained in:
parent
e49c416fae
commit
d87444824d
@ -48,9 +48,11 @@ export default class Session {
|
|||||||
}
|
}
|
||||||
|
|
||||||
applySync(syncToken, accountData, txn) {
|
applySync(syncToken, accountData, txn) {
|
||||||
|
if (syncToken !== this._session.syncToken) {
|
||||||
this._session.syncToken = syncToken;
|
this._session.syncToken = syncToken;
|
||||||
txn.session.set(this._session);
|
txn.session.set(this._session);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
get syncToken() {
|
get syncToken() {
|
||||||
return this._session.syncToken;
|
return this._session.syncToken;
|
||||||
|
Loading…
Reference in New Issue
Block a user