python: Expose the method to forget the old fallback key

This commit is contained in:
Damir Jelić 2021-11-22 10:03:32 +01:00
parent 85a2f47088
commit 701f9c765d

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 @property
def fallback_key(self): def fallback_key(self):
"""The public part of the current fallback for this account. """The public part of the current fallback for this account.