From a4f9d78a7aee57205312eac355881d0e3816573c Mon Sep 17 00:00:00 2001 From: nexy7574 Date: Mon, 6 Jan 2025 01:10:55 +0000 Subject: [PATCH] Fix spacing issue & literal content --- web/src/ui/timeline/content/PolicyRuleBody.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/web/src/ui/timeline/content/PolicyRuleBody.tsx b/web/src/ui/timeline/content/PolicyRuleBody.tsx index cf69e87..1ada141 100644 --- a/web/src/ui/timeline/content/PolicyRuleBody.tsx +++ b/web/src/ui/timeline/content/PolicyRuleBody.tsx @@ -23,7 +23,7 @@ const BanPolicyBody = ({ event, sender }: EventContentProps) => { const prevContent = event.unsigned.prev_content as PolicyRuleContent | undefined const mainScreen = use(MainScreenContext) - let entity = content.entity || prevContent?.entity + let entity = {content.entity || prevContent?.entity} if(event.type === "m.policy.rule.user" && !content.entity?.includes("*") && !content.entity?.includes("?")) { // Is user policy, and does not include the glob chars * and ? entity = ( @@ -50,8 +50,8 @@ const BanPolicyBody = ({ event, sender }: EventContentProps) => { } } return
- {sender?.content.displayname ?? event.sender} {action} a policy rule - {action === "removed" ? "un" : null}banning {entity} for {content.reason} + {sender?.content.displayname ?? event.sender} {action} a policy rule {action === "removed" ? "un" : null}banning + {entity} for: {content.reason}
}