Skip to content

Commit

Permalink
Merge branch 'cma/task/Update-DelegateMEGAChatCallListener-to-use-que…
Browse files Browse the repository at this point in the history
…ue-passed-in-parameter-instead-of-main-as-default' into 'develop'

update delegate mega chat call listener to use queue passed in parameter instead of main as default

See merge request megachat/MEGAchat!2022
  • Loading branch information
jcmartinac committed Dec 3, 2024
2 parents 275de1c + e9a5d2c commit 991c8df
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 991c8df

Please sign in to comment.