diff options
author | Samuel Newman <mozzius@protonmail.com> | 2025-07-14 20:01:48 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-07-14 10:01:48 -0700 |
commit | 587c14bac8d0c1acc5843072a010c3c986f925f4 (patch) | |
tree | f0109ef5db68fd1cdca9ee80dd48270469491fc2 | |
parent | be75e00d21fa988a1c73b1a994a5ee4426bf55c9 (diff) | |
download | voidsky-587c14bac8d0c1acc5843072a010c3c986f925f4.tar.zst |
fix who can reply icon (#8625)
-rw-r--r-- | src/components/WhoCanReply.tsx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/components/WhoCanReply.tsx b/src/components/WhoCanReply.tsx index 86c0c936e..ee939939d 100644 --- a/src/components/WhoCanReply.tsx +++ b/src/components/WhoCanReply.tsx @@ -160,7 +160,9 @@ function Icon({ width?: number settings: ThreadgateAllowUISetting[] }) { - const isEverybody = settings.length === 0 + const isEverybody = + settings.length === 0 || + settings.every(setting => setting.type === 'everybody') const isNobody = !!settings.find(gate => gate.type === 'nobody') const IconComponent = isEverybody ? Earth : isNobody ? CircleBanSign : Group return <IconComponent fill={color} width={width} /> |