Skip to content

Commit

Permalink
Merge branch 'task/iOS-5166-iOS-binding-change-CHT-518-remove-connect…
Browse files Browse the repository at this point in the history
…' into 'develop'

iOS-5166 : iOS binding change  for remove connect

Closes CHT-518

See merge request megachat/MEGAchat!1300
  • Loading branch information
lancy-mega committed Jan 19, 2022
2 parents 3b52c08 + 153e608 commit 526e123
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 44 deletions.
8 changes: 0 additions & 8 deletions bindings/Objective-C/MEGAChatSdk.h
Original file line number Diff line number Diff line change
Expand Up @@ -86,14 +86,6 @@ NS_ASSUME_NONNULL_BEGIN

- (MEGAChatInit)initState;

- (void)connectWithDelegate:(id<MEGAChatRequestDelegate>)delegate;
- (void)connect;

- (void)connectInBackgroundWithDelegate:(id<MEGAChatRequestDelegate>)delegate;
- (void)connectInBackground;

- (void)disconnectWithDelegate:(id<MEGAChatRequestDelegate>)delegate;
- (void)disconnect;
- (MEGAChatConnection)chatConnectionState:(uint64_t)chatId;
- (void)retryPendingConnections;
- (void)reconnect;
Expand Down
36 changes: 0 additions & 36 deletions bindings/Objective-C/MEGAChatSdk.mm
Original file line number Diff line number Diff line change
Expand Up @@ -105,42 +105,6 @@ - (MEGAChatInit)initState {
return (MEGAChatInit) self.megaChatApi->getInitState();
}

- (void)connectWithDelegate:(id<MEGAChatRequestDelegate>)delegate {
if (self.megaChatApi) {
self.megaChatApi->connect([self createDelegateMEGAChatRequestListener:delegate singleListener:YES]);
}
}

- (void)connect {
if (self.megaChatApi) {
self.megaChatApi->connect();
}
}

- (void)connectInBackgroundWithDelegate:(id<MEGAChatRequestDelegate>)delegate {
if (self.megaChatApi) {
self.megaChatApi->connectInBackground([self createDelegateMEGAChatRequestListener:delegate singleListener:YES]);
}
}

- (void)connectInBackground {
if (self.megaChatApi) {
self.megaChatApi->connectInBackground();
}
}

- (void)disconnectWithDelegate:(id<MEGAChatRequestDelegate>)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);
Expand Down

0 comments on commit 526e123

Please sign in to comment.