Enable secure_delete pragma for omemo database connection
This commit is contained in:
@@ -94,6 +94,7 @@ class OMEMOConnection:
|
|||||||
data_dir = configpaths.get('MY_DATA')
|
data_dir = configpaths.get('MY_DATA')
|
||||||
db_path = os.path.join(data_dir, 'omemo_' + self.own_jid + '.db')
|
db_path = os.path.join(data_dir, 'omemo_' + self.own_jid + '.db')
|
||||||
conn = sqlite3.connect(db_path, check_same_thread=False)
|
conn = sqlite3.connect(db_path, check_same_thread=False)
|
||||||
|
conn.execute("PRAGMA secure_delete=1")
|
||||||
return OmemoState(self.own_jid, conn, self.account, self)
|
return OmemoState(self.own_jid, conn, self.account, self)
|
||||||
|
|
||||||
def signed_in(self, event):
|
def signed_in(self, event):
|
||||||
|
|||||||
Reference in New Issue
Block a user