From 0333cba258543dbb28da73aa3b11bcf3c3b88e0e Mon Sep 17 00:00:00 2001 From: Hubert Chathi Date: Tue, 26 Nov 2024 09:16:20 -0500 Subject: [PATCH] temporarily add a default branch to handle unknown shield codes (#28543) --- src/components/views/rooms/EventTile.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/components/views/rooms/EventTile.tsx b/src/components/views/rooms/EventTile.tsx index 22da73bef7f..8b073688595 100644 --- a/src/components/views/rooms/EventTile.tsx +++ b/src/components/views/rooms/EventTile.tsx @@ -757,6 +757,9 @@ export class UnwrappedEventTile extends React.Component 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) {