diff --git a/spec/unit/scheduler.spec.js b/spec/unit/scheduler.spec.js index a513f97b9..b518e8323 100644 --- a/spec/unit/scheduler.spec.js +++ b/spec/unit/scheduler.spec.js @@ -105,8 +105,7 @@ describe("MatrixScheduler", function() { }); scheduler.queueEvent(eventA); - // as queueing doesn't start processing - // synchronously anymore (see commit bbdb5ac) + // as queueing doesn't start processing synchronously anymore (see commit bbdb5ac) // wait just long enough before it does await Promise.resolve(); expect(procCount).toEqual(1); @@ -147,8 +146,7 @@ describe("MatrixScheduler", function() { const globalA = scheduler.queueEvent(eventA); scheduler.queueEvent(eventB); - // as queing doesn't start processing - // synchronously anymore (see commit bbdb5ac) + // as queueing doesn't start processing synchronously anymore (see commit bbdb5ac) // wait just long enough before it does await Promise.resolve(); expect(procCount).toEqual(1); @@ -310,8 +308,7 @@ describe("MatrixScheduler", function() { expect(ev).toEqual(eventA); return defer.promise; }); - // as queueing doesn't start processing - // synchronously anymore (see commit bbdb5ac) + // as queueing doesn't start processing synchronously anymore (see commit bbdb5ac) // wait just long enough before it does Promise.resolve().then(() => { expect(procCount).toEqual(1); diff --git a/src/client.js b/src/client.js index 239dc3b1a..4c146b9d0 100644 --- a/src/client.js +++ b/src/client.js @@ -1742,6 +1742,7 @@ MatrixClient.prototype._sendCompleteEvent = function(roomId, eventObject, txnId, localEvent.updateAssociatedId(target.getId()); }); } + const type = localEvent.getType(); logger.log(`sendEvent of type ${type} in ${roomId} with txnId ${txnId}`);