From 588ef46402211afc9050c12eb0f25ae43c0408ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20D=E2=80=99Aquino?= Date: Wed, 8 Oct 2025 10:20:10 -0700 Subject: [PATCH] Hide "Load new content" behind feature flag MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This feature is not production-ready, and is not essential for the current scope of work, so descoping it and hiding it behind a feature flag until it is ready. Changelog-Removed: Removed "Load new content" button Signed-off-by: Daniel D’Aquino --- damus/Features/Settings/Models/UserSettingsStore.swift | 4 ++++ damus/Features/Timeline/Views/PostingTimelineView.swift | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/damus/Features/Settings/Models/UserSettingsStore.swift b/damus/Features/Settings/Models/UserSettingsStore.swift index 92a15ade..9ebb62db 100644 --- a/damus/Features/Settings/Models/UserSettingsStore.swift +++ b/damus/Features/Settings/Models/UserSettingsStore.swift @@ -249,6 +249,10 @@ class UserSettingsStore: ObservableObject { @Setting(key: "enable_experimental_local_relay_model", default_value: false) var enable_experimental_local_relay_model: Bool + /// Whether the app should present the experimental floating "Load new content" button + @Setting(key: "enable_experimental_load_new_content_button", default_value: false) + var enable_experimental_load_new_content_button: Bool + @StringSetting(key: "purple_environment", default_value: .production) var purple_enviroment: DamusPurpleEnvironment diff --git a/damus/Features/Timeline/Views/PostingTimelineView.swift b/damus/Features/Timeline/Views/PostingTimelineView.swift index 42985e61..fe116858 100644 --- a/damus/Features/Timeline/Views/PostingTimelineView.swift +++ b/damus/Features/Timeline/Views/PostingTimelineView.swift @@ -96,7 +96,7 @@ struct PostingTimelineView: View { .ignoresSafeArea() } - if homeEvents.incoming.count > 0 { + if damus_state.settings.enable_experimental_load_new_content_button && homeEvents.incoming.count > 0 { Button( action: { notify(.scroll_to_top)