forked from mystiq/hydrogen-web
log encrypted event count in session sync write
This commit is contained in:
parent
499efb5ce0
commit
dea11845f5
1 changed files with 1 additions and 0 deletions
|
@ -36,6 +36,7 @@ export class DeviceMessageHandler {
|
||||||
*/
|
*/
|
||||||
async writeSync(toDeviceEvents, txn, log) {
|
async writeSync(toDeviceEvents, txn, log) {
|
||||||
const encryptedEvents = toDeviceEvents.filter(e => e.type === "m.room.encrypted");
|
const encryptedEvents = toDeviceEvents.filter(e => e.type === "m.room.encrypted");
|
||||||
|
log.set("encryptedCount", encryptedEvents.length);
|
||||||
if (!encryptedEvents.length) {
|
if (!encryptedEvents.length) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue