check that encryptionInfo.sender is set

pull/21833/head
Hubert Chathi 2020-07-15 12:25:10 -04:00
parent 7ab1416787
commit aa445a061d
1 changed files with 1 additions and 1 deletions

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