Merge pull request #4988 from matrix-org/uhoreg/fix_encryption_info

check that encryptionInfo.sender is set
This commit is contained in:
Hubert Chathi 2020-07-15 14:31:38 -04:00 committed by GitHub
commit e1cf5ecd2f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -333,7 +333,7 @@ export default createReactClass({
return;
}
const eventSenderTrust = this.context.checkDeviceTrust(
const eventSenderTrust = encryptionInfo.sender && this.context.checkDeviceTrust(
senderId, encryptionInfo.sender.deviceId,
);
if (!eventSenderTrust) {