From 1757a27475c7f43bd7bad5773a0ca28dd7a28f60 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Fri, 8 Mar 2019 20:01:28 +0100 Subject: [PATCH] consistent naming --- src/matrix/session.js | 2 +- src/matrix/sync.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/matrix/session.js b/src/matrix/session.js index e80ea6ae..1f9a3d7e 100644 --- a/src/matrix/session.js +++ b/src/matrix/session.js @@ -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); diff --git a/src/matrix/sync.js b/src/matrix/sync.js index aae1fa0a..4ad89466 100644 --- a/src/matrix/sync.js +++ b/src/matrix/sync.js @@ -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) {