diff --git a/src/crypto/OlmDevice.js b/src/crypto/OlmDevice.js index 02c86c4c8..18b4f35e6 100644 --- a/src/crypto/OlmDevice.js +++ b/src/crypto/OlmDevice.js @@ -1032,6 +1032,11 @@ OlmDevice.prototype.addInboundGroupSession = async function( } } + logger.info( + "Storing megolm session " + senderKey + "/" + sessionId + + " with first index " + session.first_known_index(), + ); + const sessionData = { room_id: roomId, session: session.pickle(this._pickleKey), diff --git a/src/crypto/algorithms/megolm.js b/src/crypto/algorithms/megolm.js index 6e74a04dd..016485bf8 100644 --- a/src/crypto/algorithms/megolm.js +++ b/src/crypto/algorithms/megolm.js @@ -1323,7 +1323,6 @@ MegolmDecryption.prototype.onRoomKeyEvent = function(event) { keysClaimed = event.getKeysClaimed(); } - logger.log(`Received and adding key for megolm session ${senderKey}|${sessionId}`); return this._olmDevice.addInboundGroupSession( content.room_id, senderKey, forwardingKeyChain, sessionId, content.session_key, keysClaimed,