Skip to content

Commit

Permalink
temporarily add a default branch to handle unknown shield codes (elem…
Browse files Browse the repository at this point in the history
  • Loading branch information
uhoreg authored Nov 26, 2024
1 parent 15bd59b commit 0333cba
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/components/views/rooms/EventTile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 0333cba

Please sign in to comment.