feat: allow hide private subscription in view timeline (#3773)

This commit is contained in:
Stephen Zhou
2025-05-22 17:09:53 +08:00
committed by GitHub
parent 2ba2948693
commit f85f2f5fbb
21 changed files with 181 additions and 31 deletions
@@ -111,6 +111,9 @@ export const GeneralScreen: NavigationControllerView = () => {
const summary = useGeneralSettingKey("summary")
const autoGroup = useGeneralSettingKey("autoGroup")
const hideAllReadSubscriptions = useGeneralSettingKey("hideAllReadSubscriptions")
const hidePrivateSubscriptionsInTimeline = useGeneralSettingKey(
"hidePrivateSubscriptionsInTimeline",
)
const showUnreadOnLaunch = useGeneralSettingKey("unreadOnly")
// const groupByDate = useGeneralSettingKey("groupByDate")
const expandLongSocialMedia = useGeneralSettingKey("autoExpandLongSocialMedia")
@@ -184,6 +187,19 @@ export const GeneralScreen: NavigationControllerView = () => {
}}
/>
</GroupedInsetListCell>
<GroupedInsetListCell
label={t("general.hide_private_subscriptions_in_timeline.label")}
description={t("general.hide_private_subscriptions_in_timeline.description")}
>
<Switch
size="sm"
value={hidePrivateSubscriptionsInTimeline}
onValueChange={(value) => {
setGeneralSetting("hidePrivateSubscriptionsInTimeline", value)
}}
/>
</GroupedInsetListCell>
</GroupedInsetListCard>
{/* Timeline */}