diff --git a/src/matrix/DeviceMessageHandler.js b/src/matrix/DeviceMessageHandler.js index a726ba90..5654f0b5 100644 --- a/src/matrix/DeviceMessageHandler.js +++ b/src/matrix/DeviceMessageHandler.js @@ -36,6 +36,7 @@ export class DeviceMessageHandler { */ async writeSync(toDeviceEvents, txn, log) { const encryptedEvents = toDeviceEvents.filter(e => e.type === "m.room.encrypted"); + log.set("encryptedCount", encryptedEvents.length); if (!encryptedEvents.length) { return false; }