Hide "Load new content" behind feature flag

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 <daniel@daquino.me>
This commit is contained in:
Daniel D’Aquino
2025-10-08 10:20:10 -07:00
parent 4f479d0280
commit 588ef46402
2 changed files with 5 additions and 1 deletions

View File

@@ -249,6 +249,10 @@ class UserSettingsStore: ObservableObject {
@Setting(key: "enable_experimental_local_relay_model", default_value: false) @Setting(key: "enable_experimental_local_relay_model", default_value: false)
var enable_experimental_local_relay_model: Bool 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) @StringSetting(key: "purple_environment", default_value: .production)
var purple_enviroment: DamusPurpleEnvironment var purple_enviroment: DamusPurpleEnvironment

View File

@@ -96,7 +96,7 @@ struct PostingTimelineView: View {
.ignoresSafeArea() .ignoresSafeArea()
} }
if homeEvents.incoming.count > 0 { if damus_state.settings.enable_experimental_load_new_content_button && homeEvents.incoming.count > 0 {
Button( Button(
action: { action: {
notify(.scroll_to_top) notify(.scroll_to_top)