auto-trust web of trust chat requests behind a setting

This commit is contained in:
2026-10-20 10:01:13 +07:00
parent 66768e71a6
commit 10d74c5396
5 changed files with 81 additions and 22 deletions
+6
View File
@@ -58,6 +58,7 @@ setting_accessors! {
pub appearance_mode: AppearanceMode,
pub hide_avatar: bool,
pub screening: bool,
pub wot_auto_trust: bool,
pub nip4e: bool,
pub hide_group_notice: bool,
pub file_server: Url,
@@ -132,6 +133,10 @@ pub struct Settings {
/// Enable screening for unknown chat requests
pub screening: bool,
/// Promote chat requests from people followed by the user's contacts
#[serde(default)]
pub wot_auto_trust: bool,
/// Enable decoupling encryption key
pub nip4e: bool,
@@ -168,6 +173,7 @@ impl Default for Settings {
appearance_mode: AppearanceMode::default(),
hide_avatar: false,
screening: true,
wot_auto_trust: false,
nip4e: false,
hide_group_notice: false,
panel_background: true,