diff options
author | fiaxh <git@lightrise.org> | 2021-04-07 20:16:21 +0200 |
---|---|---|
committer | fiaxh <git@lightrise.org> | 2021-04-07 21:31:47 +0200 |
commit | 4ce2bd8cd2cb100c45589bab4bc9c10c1db659cb (patch) | |
tree | 5a79863f72b078e01f3c226a8235ecaa9e15f2ab /plugins/openpgp/src/database.vala | |
parent | 45c0ac410433089cf973854c146b6b22df4a1a1c (diff) | |
download | dino-4ce2bd8cd2cb100c45589bab4bc9c10c1db659cb.tar.gz dino-4ce2bd8cd2cb100c45589bab4bc9c10c1db659cb.zip |
Set omemo+openpgp database properties to be the same as main db
Diffstat (limited to 'plugins/openpgp/src/database.vala')
-rw-r--r-- | plugins/openpgp/src/database.vala | 8 |
1 files changed, 8 insertions, 0 deletions
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) { |