log encrypted event count in session sync write

This commit is contained in:
Bruno Windels 2021-02-18 13:07:32 +01:00
parent 499efb5ce0
commit dea11845f5

View file

@ -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;
}