forked from mystiq/hydrogen-web
consistent naming
This commit is contained in:
parent
994f1c57d3
commit
1757a27475
2 changed files with 2 additions and 2 deletions
|
@ -41,7 +41,7 @@ export default class Session {
|
||||||
return room;
|
return room;
|
||||||
}
|
}
|
||||||
|
|
||||||
applySync(syncToken, accountData, txn) {
|
persistSync(syncToken, accountData, txn) {
|
||||||
if (syncToken !== this._session.syncToken) {
|
if (syncToken !== this._session.syncToken) {
|
||||||
this._session.syncToken = syncToken;
|
this._session.syncToken = syncToken;
|
||||||
txn.session.set(this._session);
|
txn.session.set(this._session);
|
||||||
|
|
|
@ -78,7 +78,7 @@ export default class Sync extends EventEmitter {
|
||||||
]);
|
]);
|
||||||
const roomChanges = [];
|
const roomChanges = [];
|
||||||
try {
|
try {
|
||||||
this._session.applySync(syncToken, response.account_data, syncTxn);
|
this._session.persistSync(syncToken, response.account_data, syncTxn);
|
||||||
// to_device
|
// to_device
|
||||||
// presence
|
// presence
|
||||||
if (response.rooms) {
|
if (response.rooms) {
|
||||||
|
|
Loading…
Reference in a new issue