encryption: Fix for API change in the olm bindings.

This commit is contained in:
Damir Jelić 2018-07-13 14:48:53 +02:00
parent 2a8cf83f64
commit 783f2d59e8

View file

@ -572,7 +572,7 @@ class MatrixServer:
@encrypt_enabled @encrypt_enabled
def upload_keys(self, device_keys=False, one_time_keys=False): def upload_keys(self, device_keys=False, one_time_keys=False):
keys = self.olm.account.identity_keys() if device_keys else None keys = self.olm.account.identity_keys if device_keys else None
one_time_keys = (self.olm.account.one_time_keys["curve25519"] if one_time_keys = (self.olm.account.one_time_keys["curve25519"] if
one_time_keys else None) one_time_keys else None)