mirror of https://github.com/vector-im/riot-web
Merge pull request #4988 from matrix-org/uhoreg/fix_encryption_info
check that encryptionInfo.sender is setpull/21833/head
commit
e1cf5ecd2f
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue