Skip to content

Commit

Permalink
IOS-9349 Update DelegateMEGAChatCallListener to use queue passed in p…
Browse files Browse the repository at this point in the history
…arameter instead of main as default
  • Loading branch information
jcmartinac committed Dec 3, 2024
1 parent 275de1c commit e9a5d2c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bindings/Objective-C/Private/DelegateMEGAChatCallListener.mm
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
MegaChatCall *tempCall = call->copy();
MEGAChatSdk *tempMEGAChatSdk = this->megaChatSdk;
id<MEGAChatCallDelegate>tempListener = this->listener;
dispatch_async(dispatch_get_main_queue(), ^{
dispatch(this->queueType, ^{
[tempListener onChatCallUpdate:tempMEGAChatSdk call:[[MEGAChatCall alloc] initWithMegaChatCall:tempCall cMemoryOwn:YES]];
});
}
Expand All @@ -33,7 +33,7 @@
MegaChatSession *tempSession = session->copy();
MEGAChatSdk *tempMEGAChatSdk = this->megaChatSdk;
id<MEGAChatCallDelegate>tempListener = this->listener;
dispatch_async(dispatch_get_main_queue(), ^{
dispatch(this->queueType, ^{
[tempListener onChatSessionUpdate:tempMEGAChatSdk chatId:chatid callId:callid session:[MEGAChatSession.alloc initWithMegaChatSession:tempSession cMemoryOwn:YES]];
});
}
Expand Down

0 comments on commit e9a5d2c

Please sign in to comment.