diff --git a/xcode/OLMKit/OLMAccount.m b/xcode/OLMKit/OLMAccount.m index 77fddac98f68711d35c36205e879cbeb54b35256..d0f82a885baf9d2d5bc71f7e4bcb6e47c76f4759 100644 --- a/xcode/OLMKit/OLMAccount.m +++ b/xcode/OLMKit/OLMAccount.m @@ -150,7 +150,7 @@ } size_t result = olm_remove_one_time_keys(self.account, session.session); if (result == olm_error()) { - const char *error = olm_session_last_error(session.session); + const char *error = olm_account_last_error(_account); NSAssert(NO, @"olm_remove_one_time_keys error: %s", error); return NO; }