consistent naming

This commit is contained in:
Bruno Windels 2019-03-08 20:01:28 +01:00
parent 994f1c57d3
commit 1757a27475
2 changed files with 2 additions and 2 deletions

View file

@ -41,7 +41,7 @@ export default class Session {
return room;
}
applySync(syncToken, accountData, txn) {
persistSync(syncToken, accountData, txn) {
if (syncToken !== this._session.syncToken) {
this._session.syncToken = syncToken;
txn.session.set(this._session);

View file

@ -78,7 +78,7 @@ export default class Sync extends EventEmitter {
]);
const roomChanges = [];
try {
this._session.applySync(syncToken, response.account_data, syncTxn);
this._session.persistSync(syncToken, response.account_data, syncTxn);
// to_device
// presence
if (response.rooms) {