From e2c2b982f6f3189b7f4423d132ff7a2e0360f87f Mon Sep 17 00:00:00 2001 From: Lancy Date: Wed, 29 Dec 2021 10:59:52 +1300 Subject: [PATCH] iOS-5166: CHT-518 removed the connect and disconnect methods. --- bindings/Objective-C/MEGAChatSdk.h | 8 ------- bindings/Objective-C/MEGAChatSdk.mm | 36 ----------------------------- 2 files changed, 44 deletions(-) diff --git a/bindings/Objective-C/MEGAChatSdk.h b/bindings/Objective-C/MEGAChatSdk.h index 2f834bd12..f044c5e7e 100644 --- a/bindings/Objective-C/MEGAChatSdk.h +++ b/bindings/Objective-C/MEGAChatSdk.h @@ -95,14 +95,6 @@ NS_ASSUME_NONNULL_BEGIN - (MEGAChatInit)initState; -- (void)connectWithDelegate:(id)delegate; -- (void)connect; - -- (void)connectInBackgroundWithDelegate:(id)delegate; -- (void)connectInBackground; - -- (void)disconnectWithDelegate:(id)delegate; -- (void)disconnect; - (MEGAChatConnection)chatConnectionState:(uint64_t)chatId; - (void)retryPendingConnections; - (void)reconnect; diff --git a/bindings/Objective-C/MEGAChatSdk.mm b/bindings/Objective-C/MEGAChatSdk.mm index b51e75509..0f0d19b4c 100644 --- a/bindings/Objective-C/MEGAChatSdk.mm +++ b/bindings/Objective-C/MEGAChatSdk.mm @@ -105,42 +105,6 @@ - (MEGAChatInit)initState { return (MEGAChatInit) self.megaChatApi->getInitState(); } -- (void)connectWithDelegate:(id)delegate { - if (self.megaChatApi) { - self.megaChatApi->connect([self createDelegateMEGAChatRequestListener:delegate singleListener:YES]); - } -} - -- (void)connect { - if (self.megaChatApi) { - self.megaChatApi->connect(); - } -} - -- (void)connectInBackgroundWithDelegate:(id)delegate { - if (self.megaChatApi) { - self.megaChatApi->connectInBackground([self createDelegateMEGAChatRequestListener:delegate singleListener:YES]); - } -} - -- (void)connectInBackground { - if (self.megaChatApi) { - self.megaChatApi->connectInBackground(); - } -} - -- (void)disconnectWithDelegate:(id)delegate { - if (self.megaChatApi) { - self.megaChatApi->disconnect([self createDelegateMEGAChatRequestListener:delegate singleListener:YES]); - } -} - -- (void)disconnect { - if (self.megaChatApi) { - self.megaChatApi->disconnect(); - } -} - - (MEGAChatConnection)chatConnectionState:(uint64_t)chatId { if (self.megaChatApi == nil) return MEGAChatConnectionOffline; return (MEGAChatConnection) self.megaChatApi->getChatConnectionState(chatId);