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:
@@ -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
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user