Resolve multiple CVEs

CVE-2022-39249
CVE-2022-39250
CVE-2022-39251
CVE-2022-39236
t3chguy/dedup-icons-17oct
RiotRobot 2022-09-28 13:57:36 +01:00
parent 2be99bcaf3
commit 66b21e96ca
1 changed files with 4 additions and 2 deletions

View File

@ -628,9 +628,11 @@ export class UnwrappedEventTile extends React.Component<IProps, IState> {
}
if (!userTrust.isCrossSigningVerified()) {
// user is not verified, so default to everything is normal
// If the message is unauthenticated, then display a grey
// shield, otherwise if the user isn't cross-signed then
// nothing's needed
this.setState({
verified: E2EState.Normal,
verified: encryptionInfo.authenticated ? E2EState.Normal : E2EState.Unauthenticated,
}, this.props.onHeightChanged); // Decryption may have caused a change in size
return;
}