encryption: Only try to store the olm info if the olm object exists.
This commit is contained in:
parent
8f7dac4a0d
commit
320f490273
1 changed files with 2 additions and 1 deletions
|
@ -180,6 +180,7 @@ class MatrixServer:
|
||||||
|
|
||||||
@encrypt_enabled
|
@encrypt_enabled
|
||||||
def store_olm(self):
|
def store_olm(self):
|
||||||
|
if self.olm:
|
||||||
self.olm.to_session_dir()
|
self.olm.to_session_dir()
|
||||||
|
|
||||||
def _create_options(self, config_file):
|
def _create_options(self, config_file):
|
||||||
|
|
Loading…
Add table
Reference in a new issue