OLMKit: OLMAccount: Replace a olm_session_last_error by olm_account_last_error

This commit is contained in:
manuroe 2016-09-30 08:16:58 +02:00
parent 45ecaaedd1
commit 2ca67ace60

View file

@ -150,7 +150,7 @@
} }
size_t result = olm_remove_one_time_keys(self.account, session.session); size_t result = olm_remove_one_time_keys(self.account, session.session);
if (result == olm_error()) { 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); NSAssert(NO, @"olm_remove_one_time_keys error: %s", error);
return NO; return NO;
} }