From d1060af8f0dec312447567cce0bc812c82b7343f Mon Sep 17 00:00:00 2001
From: manuroe <manu@matrix.org>
Date: Thu, 13 Oct 2016 16:10:00 +0200
Subject: [PATCH] OLMKit: Renamed [OLMAccount markKeysAsPublished] into
 [OLMAccount markOneTimeKeysAsPublished] and implemented it

---
 xcode/OLMKit/OLMAccount.h | 2 +-
 xcode/OLMKit/OLMAccount.m | 5 +++++
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/xcode/OLMKit/OLMAccount.h b/xcode/OLMKit/OLMAccount.h
index a2923f9..382be31 100644
--- a/xcode/OLMKit/OLMAccount.h
+++ b/xcode/OLMKit/OLMAccount.h
@@ -28,7 +28,7 @@
 - (BOOL) removeOneTimeKeysForSession:(OLMSession*)session;
 
 /** Marks the current set of one time keys as being published. */
-- (void) markKeysAsPublished;
+- (void) markOneTimeKeysAsPublished;
 
 /** The largest number of one time keys this account can store. */
 - (NSUInteger) maxOneTimeKeys;
diff --git a/xcode/OLMKit/OLMAccount.m b/xcode/OLMKit/OLMAccount.m
index d0f82a8..085b487 100644
--- a/xcode/OLMKit/OLMAccount.m
+++ b/xcode/OLMKit/OLMAccount.m
@@ -157,6 +157,11 @@
     return YES;
 }
 
+- (void)markOneTimeKeysAsPublished
+{
+    olm_account_mark_keys_as_published(self.account);
+}
+
 #pragma mark OLMSerializable
 
 /** Initializes from encrypted serialized data. Will throw error if invalid key or invalid base64. */
-- 
GitLab