From 4ce2bd8cd2cb100c45589bab4bc9c10c1db659cb Mon Sep 17 00:00:00 2001 From: fiaxh Date: Wed, 7 Apr 2021 20:16:21 +0200 Subject: Set omemo+openpgp database properties to be the same as main db --- plugins/openpgp/src/database.vala | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'plugins/openpgp') diff --git a/plugins/openpgp/src/database.vala b/plugins/openpgp/src/database.vala index 2bda06af..f488078c 100644 --- a/plugins/openpgp/src/database.vala +++ b/plugins/openpgp/src/database.vala @@ -36,6 +36,14 @@ public class Database : Qlite.Database { this.account_setting_table = new AccountSetting(this); this.contact_key_table = new ContactKey(this); init({account_setting_table, contact_key_table}); + + try { + exec("PRAGMA journal_mode = WAL"); + exec("PRAGMA synchronous = NORMAL"); + exec("PRAGMA secure_delete = ON"); + } catch (Error e) { + error("Failed to set OpenPGP database properties: %s", e.message); + } } public void set_contact_key(Jid jid, string key) { -- cgit v1.2.3-70-g09d2