diff --git a/src/pages/factions/FactionChannel.tsx b/src/pages/factions/FactionChannel.tsx index 626687d..112c4aa 100644 --- a/src/pages/factions/FactionChannel.tsx +++ b/src/pages/factions/FactionChannel.tsx @@ -13,8 +13,6 @@ import { Input } from "@/components/primitives/input"; import { Select } from "@/components/primitives/select"; import { apiFaction, - apiFactionThreadDelete, - apiFactionThreadReplyDelete, apiFactionThreadReply, apiFactionThreadTransition, apiMe, @@ -208,27 +206,6 @@ const FactionChannel: React.FC = () => { {formatDateTime(thread.updatedAt)}

- {canModerate || - normalizeAddress(thread.authorAddress) === - normalizeAddress(viewerAddress ?? "") ? ( -
- -
- ) : null} )) @@ -269,50 +246,24 @@ const FactionChannel: React.FC = () => { {(activeThread.messages ?? []).length === 0 ? (

No replies yet.

) : ( - (activeThread.messages ?? []).map((message) => { - const canDeleteMessage = - canModerate || - normalizeAddress(message.authorAddress) === - normalizeAddress(viewerAddress ?? ""); - return ( -
-
- -
- - {formatDateTime(message.createdAt)} - - {canDeleteMessage ? ( - - ) : null} -
-
-

{message.body}

+ (activeThread.messages ?? []).map((message) => ( +
+
+ + + {formatDateTime(message.createdAt)} +
- ); - }) +

{message.body}

+
+ )) )}