xep_0384: Add check on data_dir before loading plugin
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
parent
15f34aa145
commit
a490ca6066
1 changed files with 5 additions and 0 deletions
|
@ -141,6 +141,11 @@ class XEP_0384(BasePlugin):
|
||||||
"is not available")
|
"is not available")
|
||||||
return
|
return
|
||||||
|
|
||||||
|
if not self.data_dir:
|
||||||
|
log.info("xep_0384 canoot be loaded as there is not data directory "
|
||||||
|
"specified")
|
||||||
|
return None
|
||||||
|
|
||||||
storage = SyncFileStorage(self.data_dir)
|
storage = SyncFileStorage(self.data_dir)
|
||||||
otpkpolicy = KeepingOTPKPolicy()
|
otpkpolicy = KeepingOTPKPolicy()
|
||||||
self._omemo_backend = SignalBackend
|
self._omemo_backend = SignalBackend
|
||||||
|
|
Loading…
Reference in a new issue