olm: Mark one time keys as published and store the account.
This commit is contained in:
parent
d28e6eb598
commit
f8c1f564ae
3 changed files with 11 additions and 0 deletions
|
|
@ -199,3 +199,7 @@ class Olm():
|
|||
))
|
||||
|
||||
return signature
|
||||
|
||||
@encrypt_enabled
|
||||
def mark_keys_as_published(self):
|
||||
self.account.mark_keys_as_published()
|
||||
|
|
|
|||
|
|
@ -74,6 +74,9 @@ class MatrixKeyUploadEvent(MatrixEvent):
|
|||
MatrixEvent.__init__(self, server)
|
||||
|
||||
def execute(self):
|
||||
self.server.olm.mark_keys_as_published()
|
||||
self.server.store_olm()
|
||||
|
||||
if not self.device_keys:
|
||||
return
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue