check that encryptionInfo.sender is set
This commit is contained in:
@@ -333,7 +333,7 @@ export default createReactClass({
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
const eventSenderTrust = this.context.checkDeviceTrust(
|
const eventSenderTrust = encryptionInfo.sender && this.context.checkDeviceTrust(
|
||||||
senderId, encryptionInfo.sender.deviceId,
|
senderId, encryptionInfo.sender.deviceId,
|
||||||
);
|
);
|
||||||
if (!eventSenderTrust) {
|
if (!eventSenderTrust) {
|
||||||
|
|||||||
Reference in New Issue
Block a user