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:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user