diff --git a/src/TextForEvent.tsx b/src/TextForEvent.tsx index 038c69ac15..ea669d4050 100644 --- a/src/TextForEvent.tsx +++ b/src/TextForEvent.tsx @@ -510,9 +510,9 @@ function textForPinnedEvent(event: MatrixEvent, allowJSX: boolean): () => string } ); - } else { - return () => _t("%(senderName)s changed the pinned messages for the room.", { senderName }); } + + return () => _t("%(senderName)s changed the pinned messages for the room.", { senderName }); } function textForWidgetEvent(event): () => string | null {