From 2ca67ace604962cb0d658d40515113ef99a51214 Mon Sep 17 00:00:00 2001
From: manuroe <manu@matrix.org>
Date: Fri, 30 Sep 2016 08:16:58 +0200
Subject: [PATCH] OLMKit: OLMAccount: Replace a olm_session_last_error by
 olm_account_last_error

---
 xcode/OLMKit/OLMAccount.m | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/xcode/OLMKit/OLMAccount.m b/xcode/OLMKit/OLMAccount.m
index 77fddac..d0f82a8 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;
     }
-- 
GitLab