python: Expose the method to forget the old fallback key

poljar/python-fallback-keys
Damir Jelić 2021-11-22 10:03:32 +01:00
parent 85a2f47088
commit 701f9c765d
1 changed files with 9 additions and 0 deletions

View File

@ -294,6 +294,15 @@ class Account(object):
)
)
def forget_old_fallback_key(self):
"""Forget about the old fallback key.
This should be called once you are reasonably certain that you will not
receive any more messages that use the old fallback key (e.g. 5 minutes
after the new fallback key has been published).
"""
lib.olm_account_forget_old_fallback_key(self._account)
@property
def fallback_key(self):
"""The public part of the current fallback for this account.