fix who can reply icon (#8625)

This commit is contained in:
Samuel Newman
2025-07-14 20:01:48 +03:00
committed by GitHub
parent be75e00d21
commit 587c14bac8
+3 -1
View File
@@ -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} />