diff --git a/spec/unit/crypto.spec.js b/spec/unit/crypto.spec.js index 9b5d355f7..de7160ddc 100644 --- a/spec/unit/crypto.spec.js +++ b/spec/unit/crypto.spec.js @@ -224,7 +224,9 @@ describe("Crypto", function() { } })); - const bobDecryptor = bobClient._crypto._getRoomDecryptor(roomId, olmlib.MEGOLM_ALGORITHM); + const bobDecryptor = bobClient._crypto._getRoomDecryptor( + roomId, olmlib.MEGOLM_ALGORITHM, + ); let eventPromise = Promise.all(events.map((ev) => { return awaitEvent(ev, "Event.decrypted"); diff --git a/src/crypto/OlmDevice.js b/src/crypto/OlmDevice.js index cc22ae8aa..421598ea5 100644 --- a/src/crypto/OlmDevice.js +++ b/src/crypto/OlmDevice.js @@ -932,7 +932,8 @@ OlmDevice.prototype.addInboundGroupSession = async function( if (existingSession) { logger.log( - "Update for megolm session " + senderKey + "/" + sessionId, + "Update for megolm session " + + senderKey + "/" + sessionId, ); if (existingSession.first_known_index() <= session.first_known_index()) { diff --git a/src/crypto/algorithms/megolm.js b/src/crypto/algorithms/megolm.js index f271727ce..153c5e102 100644 --- a/src/crypto/algorithms/megolm.js +++ b/src/crypto/algorithms/megolm.js @@ -968,7 +968,6 @@ MegolmDecryption.prototype.onRoomKeyEvent = function(event) { }); } }); - }).catch((e) => { logger.error(`Error handling m.room_key_event: ${e}`); });