omemo: put OMEMO data into a folder specific to the account

Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
Maxime “pep” Buquet 2019-08-22 22:16:44 +02:00
parent 95a9858717
commit 1be00f5e20

View file

@ -40,7 +40,7 @@ class Plugin(E2EEPlugin):
self.info = lambda i: self.api.information(i, 'Info')
data_dir = os.path.join(DATA_HOME, 'omemo')
data_dir = os.path.join(DATA_HOME, 'omemo', self.core.xmpp.boundjid.bare)
os.makedirs(data_dir, exist_ok=True)
try: