diff --git a/umap/static/umap/js/modules/sync/engine.js b/umap/static/umap/js/modules/sync/engine.js index caa36058..651825ce 100644 --- a/umap/static/umap/js/modules/sync/engine.js +++ b/umap/static/umap/js/modules/sync/engine.js @@ -183,9 +183,13 @@ export class SyncEngine { * @param {string} payload.sender the uuid of the requesting peer * @param {string} payload.latestKnownHLC the latest known HLC of the requesting peer */ - onListOperationsRequest({ sender, lastKnownHLC }) { + onListOperationsRequest({ sender, message }) { + debug( + `received operations request from peer ${sender} (since ${message.lastKnownHLC})` + ) + this.sendToPeer(sender, 'ListOperationsResponse', { - operations: this._operations.getOperationsSince(lastKnownHLC), + operations: this._operations.getOperationsSince(message.lastKnownHLC), }) }