hardcode zap receipts off and do not show in settings up

This commit is contained in:
Mike Dilger 2023-03-31 17:34:05 +13:00
parent c09d51d4a5
commit 527f9741a5
2 changed files with 5 additions and 3 deletions

View File

@ -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

View File

@ -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,