forked from mystiq/hydrogen-web
better naming
This commit is contained in:
parent
ac4a7f971b
commit
56c87b3966
2 changed files with 2 additions and 2 deletions
|
@ -31,12 +31,12 @@ export default class Room extends EventEmitter {
|
||||||
}
|
}
|
||||||
|
|
||||||
afterSync({summaryChanges, newTimelineEntries, newLiveKey, removedPendingEvents}) {
|
afterSync({summaryChanges, newTimelineEntries, newLiveKey, removedPendingEvents}) {
|
||||||
|
this._syncWriter.afterSync(newLiveKey);
|
||||||
if (summaryChanges) {
|
if (summaryChanges) {
|
||||||
this._summary.afterSync(summaryChanges);
|
this._summary.afterSync(summaryChanges);
|
||||||
this.emit("change");
|
this.emit("change");
|
||||||
this._emitCollectionChange(this);
|
this._emitCollectionChange(this);
|
||||||
}
|
}
|
||||||
this._syncWriter.setKeyOnCompleted(newLiveKey);
|
|
||||||
if (this._timeline) {
|
if (this._timeline) {
|
||||||
this._timeline.appendLiveEntries(newTimelineEntries);
|
this._timeline.appendLiveEntries(newTimelineEntries);
|
||||||
}
|
}
|
||||||
|
|
|
@ -129,7 +129,7 @@ export default class SyncWriter {
|
||||||
return {entries, newLiveKey: currentKey};
|
return {entries, newLiveKey: currentKey};
|
||||||
}
|
}
|
||||||
|
|
||||||
setKeyOnCompleted(newLiveKey) {
|
afterSync(newLiveKey) {
|
||||||
this._lastLiveKey = newLiveKey;
|
this._lastLiveKey = newLiveKey;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue