From 1fd281121beb8e6655fd8414ddd4929c0574dd7d Mon Sep 17 00:00:00 2001 From: Jack Kingsman Date: Wed, 1 Apr 2026 15:58:15 -0700 Subject: [PATCH] Default auto-dm-decrypt to true --- app/migrations.py | 4 ++-- app/models.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/migrations.py b/app/migrations.py index f7e690c..07702b5 100644 --- a/app/migrations.py +++ b/app/migrations.py @@ -836,7 +836,7 @@ async def _migrate_009_create_app_settings_table(conn: aiosqlite.Connection) -> id INTEGER PRIMARY KEY CHECK (id = 1), max_radio_contacts INTEGER DEFAULT 200, favorites TEXT DEFAULT '[]', - auto_decrypt_dm_on_advert INTEGER DEFAULT 0, + auto_decrypt_dm_on_advert INTEGER DEFAULT 1, sidebar_sort_order TEXT DEFAULT 'recent', last_message_times TEXT DEFAULT '{}', preferences_migrated INTEGER DEFAULT 0 @@ -848,7 +848,7 @@ async def _migrate_009_create_app_settings_table(conn: aiosqlite.Connection) -> await conn.execute( """ INSERT OR IGNORE INTO app_settings (id, max_radio_contacts, favorites, auto_decrypt_dm_on_advert, sidebar_sort_order, last_message_times, preferences_migrated) - VALUES (1, 200, '[]', 0, 'recent', '{}', 0) + VALUES (1, 200, '[]', 1, 'recent', '{}', 0) """ ) diff --git a/app/models.py b/app/models.py index e6833a2..42c9c30 100644 --- a/app/models.py +++ b/app/models.py @@ -805,7 +805,7 @@ class AppSettings(BaseModel): default_factory=list, description="List of favorited conversations" ) auto_decrypt_dm_on_advert: bool = Field( - default=False, + default=True, description="Whether to attempt historical DM decryption on new contact advertisement", ) sidebar_sort_order: Literal["recent", "alpha"] = Field(