From 04ccec6de3e8f246e9e7b8923c55791bb74bc9de Mon Sep 17 00:00:00 2001 From: Denis Kasak Date: Thu, 19 Aug 2021 10:36:53 +0200 Subject: [PATCH] Log which devices room keys were shared with. --- src/crypto/algorithms/megolm.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/crypto/algorithms/megolm.ts b/src/crypto/algorithms/megolm.ts index 322f2d061..66d4cc9d0 100644 --- a/src/crypto/algorithms/megolm.ts +++ b/src/crypto/algorithms/megolm.ts @@ -864,7 +864,8 @@ class MegolmEncryption extends EncryptionAlgorithm { `megolm keys for ${session.sessionId} ` + `in ${this.roomId} (slice ${i + 1}/${userDeviceMaps.length})`; try { - logger.debug(`Sharing ${taskDetail}`); + logger.debug(`Sharing ${taskDetail}`, + userDeviceMaps[i].map((d) => `${d.userId}/${d.deviceInfo.deviceId}`)); await this.encryptAndSendKeysToDevices( session, key.chain_index, userDeviceMaps[i], payload, );