temporarily add a default branch to handle unknown shield codes (#28543)

This commit is contained in:
Hubert Chathi 2024-11-26 09:16:20 -05:00 committed by GitHub
parent 15bd59b81a
commit 0333cba258
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -757,6 +757,9 @@ export class UnwrappedEventTile extends React.Component<EventTileProps, IState>
case EventShieldReason.MISMATCHED_SENDER_KEY:
shieldReasonMessage = _t("encryption|event_shield_reason_mismatched_sender_key");
break;
default:
shieldReasonMessage = _t("error|unknown");
}
if (this.state.shieldColour === EventShieldColour.GREY) {