Commit af45dd3b authored by Alexander Krotov's avatar Alexander Krotov

Enable secure_delete pragma for omemo database connection

parent 5dd424a5
......@@ -94,6 +94,7 @@ class OMEMOConnection:
data_dir = configpaths.get('MY_DATA')
db_path = os.path.join(data_dir, 'omemo_' + self.own_jid + '.db')
conn = sqlite3.connect(db_path, check_same_thread=False)
conn.execute("PRAGMA secure_delete=1")
return OmemoState(self.own_jid, conn, self.account, self)
def signed_in(self, event):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment