diff options
Diffstat (limited to 'plugins/omemo/src')
-rw-r--r-- | plugins/omemo/src/logic/database.vala | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/plugins/omemo/src/logic/database.vala b/plugins/omemo/src/logic/database.vala index 429b5f0b..ec5a0924 100644 --- a/plugins/omemo/src/logic/database.vala +++ b/plugins/omemo/src/logic/database.vala @@ -256,12 +256,14 @@ public class Database : Qlite.Database { session = new SessionTable(this); content_item_meta = new ContentItemMetaTable(this); init({identity_meta, trust, identity, signed_pre_key, pre_key, session, content_item_meta}); + try { - exec("PRAGMA synchronous=0"); - } catch (Error e) { } - try { - exec("PRAGMA secure_delete=1"); - } catch (Error e) { } + exec("PRAGMA journal_mode = WAL"); + exec("PRAGMA synchronous = NORMAL"); + exec("PRAGMA secure_delete = ON"); + } catch (Error e) { + error("Failed to set OMEMO database properties: %s", e.message); + } } public override void migrate(long oldVersion) { |