mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 11:35:04 +01:00
undo obsolete changes
This commit is contained in:
parent
d53b5eefb3
commit
6e77ebb160
@ -48,7 +48,7 @@ function timelineIsEmpty(roomResponse) {
|
|||||||
* // writes and calculates changes
|
* // writes and calculates changes
|
||||||
* const changes = await room.writeSync(roomResponse, isInitialSync, preparation, syncTxn);
|
* const changes = await room.writeSync(roomResponse, isInitialSync, preparation, syncTxn);
|
||||||
* // applies and emits changes once syncTxn is committed
|
* // applies and emits changes once syncTxn is committed
|
||||||
* room.afterSync(changes, preparation);
|
* room.afterSync(changes);
|
||||||
* if (room.needsAfterSyncCompleted(changes)) {
|
* if (room.needsAfterSyncCompleted(changes)) {
|
||||||
* // can do network requests
|
* // can do network requests
|
||||||
* await room.afterSyncCompleted(changes);
|
* await room.afterSyncCompleted(changes);
|
||||||
@ -170,7 +170,7 @@ export class Sync {
|
|||||||
const isInitialSync = !syncToken;
|
const isInitialSync = !syncToken;
|
||||||
syncToken = response.next_batch;
|
syncToken = response.next_batch;
|
||||||
const roomStates = this._parseRoomsResponse(response.rooms, isInitialSync);
|
const roomStates = this._parseRoomsResponse(response.rooms, isInitialSync);
|
||||||
await this._prepareRooms(roomStates, isInitialSync);
|
await this._prepareRooms(roomStates);
|
||||||
let sessionChanges;
|
let sessionChanges;
|
||||||
const syncTxn = await this._openSyncTxn();
|
const syncTxn = await this._openSyncTxn();
|
||||||
try {
|
try {
|
||||||
|
Loading…
Reference in New Issue
Block a user