From 701f9c765dcb3fc71583083d8bb254dffec13892 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damir=20Jeli=C4=87?= Date: Mon, 22 Nov 2021 10:03:32 +0100 Subject: [PATCH] python: Expose the method to forget the old fallback key --- python/olm/account.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/python/olm/account.py b/python/olm/account.py index 27ccbb3..36209dd 100644 --- a/python/olm/account.py +++ b/python/olm/account.py @@ -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.