From e9a5d2cd56647fe37a6af5d8cc81774a96c036a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Marti=CC=81n=20Acera?= Date: Tue, 3 Dec 2024 13:20:48 +0100 Subject: [PATCH] IOS-9349 Update DelegateMEGAChatCallListener to use queue passed in parameter instead of main as default --- bindings/Objective-C/Private/DelegateMEGAChatCallListener.mm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bindings/Objective-C/Private/DelegateMEGAChatCallListener.mm b/bindings/Objective-C/Private/DelegateMEGAChatCallListener.mm index 59202899b..61037d7ac 100644 --- a/bindings/Objective-C/Private/DelegateMEGAChatCallListener.mm +++ b/bindings/Objective-C/Private/DelegateMEGAChatCallListener.mm @@ -22,7 +22,7 @@ MegaChatCall *tempCall = call->copy(); MEGAChatSdk *tempMEGAChatSdk = this->megaChatSdk; idtempListener = this->listener; - dispatch_async(dispatch_get_main_queue(), ^{ + dispatch(this->queueType, ^{ [tempListener onChatCallUpdate:tempMEGAChatSdk call:[[MEGAChatCall alloc] initWithMegaChatCall:tempCall cMemoryOwn:YES]]; }); } @@ -33,7 +33,7 @@ MegaChatSession *tempSession = session->copy(); MEGAChatSdk *tempMEGAChatSdk = this->megaChatSdk; idtempListener = 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]]; }); }