1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-08-09 10:22:46 +03:00

Minor post-review tweaks

This commit is contained in:
Richard van der Hoff
2017-02-10 10:37:46 +00:00
parent b66fed9ae9
commit bf2e6a33c2
2 changed files with 7 additions and 4 deletions

View File

@@ -169,7 +169,7 @@ utils.inherits(DecryptionError, Error);
* @returns {String} * @returns {String}
*/ */
DecryptionError.prototype.toString = function() { DecryptionError.prototype.toString = function() {
let result = this.name + '[msg: '+ this.message; let result = this.name + '[msg: ' + this.message;
if (this.details) { if (this.details) {
result += ', ' + result += ', ' +

View File

@@ -606,10 +606,13 @@ MegolmDecryption.prototype.onRoomKeyEvent = function(event) {
if (!content.room_id || if (!content.room_id ||
!sessionId || !sessionId ||
!content.session_key || !content.session_key
!senderKey
) { ) {
console.error(`key event is missing fields`); console.error("key event is missing fields");
return;
}
if (!senderKey) {
console.error("key event has no sender key (not encrypted?)");
return; return;
} }