aboutsummaryrefslogtreecommitdiff
path: root/xcode/OLMKit
diff options
context:
space:
mode:
authormanuroe <manu@matrix.org>2016-09-30 08:16:58 +0200
committermanuroe <manu@matrix.org>2016-09-30 08:16:58 +0200
commit2ca67ace604962cb0d658d40515113ef99a51214 (patch)
tree319f9bc4e7e7e4972cfdc91b8fa510bd89c560d1 /xcode/OLMKit
parent45ecaaedd1eab582965f2cca8d2a04e6c906491b (diff)
OLMKit: OLMAccount: Replace a olm_session_last_error by olm_account_last_error
Diffstat (limited to 'xcode/OLMKit')
-rw-r--r--xcode/OLMKit/OLMAccount.m2
1 files changed, 1 insertions, 1 deletions
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;
}