1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-11-26 17:03:12 +03:00
This commit is contained in:
Hubert Chathi
2019-02-28 22:48:04 -05:00
parent 4b5623691b
commit a1be24307a
3 changed files with 5 additions and 3 deletions

View File

@@ -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) => { let eventPromise = Promise.all(events.map((ev) => {
return awaitEvent(ev, "Event.decrypted"); return awaitEvent(ev, "Event.decrypted");

View File

@@ -932,7 +932,8 @@ OlmDevice.prototype.addInboundGroupSession = async function(
if (existingSession) { if (existingSession) {
logger.log( logger.log(
"Update for megolm session " + senderKey + "/" + sessionId, "Update for megolm session "
+ senderKey + "/" + sessionId,
); );
if (existingSession.first_known_index() if (existingSession.first_known_index()
<= session.first_known_index()) { <= session.first_known_index()) {

View File

@@ -968,7 +968,6 @@ MegolmDecryption.prototype.onRoomKeyEvent = function(event) {
}); });
} }
}); });
}).catch((e) => { }).catch((e) => {
logger.error(`Error handling m.room_key_event: ${e}`); logger.error(`Error handling m.room_key_event: ${e}`);
}); });