check that encryptionInfo.sender is set

This commit is contained in:
Hubert Chathi 2020-07-15 12:25:10 -04:00
parent 7ab1416787
commit aa445a061d

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) {