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

pull/28553/head
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
1 changed files with 3 additions and 0 deletions

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) {