Skip to content

Commit

Permalink
Merge pull request #4988 from matrix-org/uhoreg/fix_encryption_info
Browse files Browse the repository at this point in the history
check that encryptionInfo.sender is set
  • Loading branch information
uhoreg committed Jul 15, 2020
2 parents 7ab1416 + aa445a0 commit e1cf5ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/views/rooms/EventTile.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit e1cf5ec

Please sign in to comment.