Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 66b21e9

Browse files
committed
1 parent 2be99bc commit 66b21e9

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/components/views/rooms/EventTile.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -628,9 +628,11 @@ export class UnwrappedEventTile extends React.Component<IProps, IState> {
628628
}
629629

630630
if (!userTrust.isCrossSigningVerified()) {
631-
// user is not verified, so default to everything is normal
631+
// If the message is unauthenticated, then display a grey
632+
// shield, otherwise if the user isn't cross-signed then
633+
// nothing's needed
632634
this.setState({
633-
verified: E2EState.Normal,
635+
verified: encryptionInfo.authenticated ? E2EState.Normal : E2EState.Unauthenticated,
634636
}, this.props.onHeightChanged); // Decryption may have caused a change in size
635637
return;
636638
}

0 commit comments

Comments
 (0)