You've already forked matrix-js-sdk
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:
@@ -169,7 +169,7 @@ utils.inherits(DecryptionError, Error);
|
||||
* @returns {String}
|
||||
*/
|
||||
DecryptionError.prototype.toString = function() {
|
||||
let result = this.name + '[msg: '+ this.message;
|
||||
let result = this.name + '[msg: ' + this.message;
|
||||
|
||||
if (this.details) {
|
||||
result += ', ' +
|
||||
|
@@ -606,10 +606,13 @@ MegolmDecryption.prototype.onRoomKeyEvent = function(event) {
|
||||
|
||||
if (!content.room_id ||
|
||||
!sessionId ||
|
||||
!content.session_key ||
|
||||
!senderKey
|
||||
!content.session_key
|
||||
) {
|
||||
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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user