From 527f9741a5255404a01b1c2962f7917652225b6f Mon Sep 17 00:00:00 2001 From: Mike Dilger Date: Fri, 31 Mar 2023 17:34:05 +1300 Subject: [PATCH] hardcode zap receipts off and do not show in settings up --- src/settings.rs | 4 ++-- src/ui/settings.rs | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/settings.rs b/src/settings.rs index 5dd6bd05..45839bb5 100644 --- a/src/settings.rs +++ b/src/settings.rs @@ -181,7 +181,7 @@ impl Settings { "highlight_unread_events" => { settings.highlight_unread_events = numstr_to_bool(row.1) } - "enable_zap_receipts" => settings.enable_zap_receipts = numstr_to_bool(row.1), + "enable_zap_receipts" => settings.enable_zap_receipts = false, //numstr_to_bool(row.1), _ => {} } } @@ -253,7 +253,7 @@ impl Settings { bool_to_numstr(self.automatically_fetch_metadata), self.delegatee_tag, bool_to_numstr(self.highlight_unread_events), - bool_to_numstr(self.enable_zap_receipts), + "0" // bool_to_numstr(self.enable_zap_receipts), ])?; // Settings which are Options should not even exist when None. We don't accept null valued diff --git a/src/ui/settings.rs b/src/ui/settings.rs index e672b83d..66b5d6c6 100644 --- a/src/ui/settings.rs +++ b/src/ui/settings.rs @@ -99,10 +99,12 @@ pub(super) fn update(app: &mut GossipUi, ctx: &Context, _frame: &mut eframe::Fra "Enable reactions (show and react)", ); + /* ui.checkbox( &mut app.settings.enable_zap_receipts, "Enable zap receipts", - ); + ); + */ ui.checkbox( &mut app.settings.reposts,