mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-16 13:14:58 +08:00
check that encryptionInfo.sender is set
This commit is contained in:
parent
7ab1416787
commit
aa445a061d
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user