Skip to content

Commit 0333cba

Browse files
authored
temporarily add a default branch to handle unknown shield codes (element-hq#28543)
1 parent 15bd59b commit 0333cba

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/components/views/rooms/EventTile.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -757,6 +757,9 @@ export class UnwrappedEventTile extends React.Component<EventTileProps, IState>
757757
case EventShieldReason.MISMATCHED_SENDER_KEY:
758758
shieldReasonMessage = _t("encryption|event_shield_reason_mismatched_sender_key");
759759
break;
760+
761+
default:
762+
shieldReasonMessage = _t("error|unknown");
760763
}
761764

762765
if (this.state.shieldColour === EventShieldColour.GREY) {

0 commit comments

Comments
 (0)