From 4c2fe06f50b8997e81e03d8755b9ea4eda5c3d45 Mon Sep 17 00:00:00 2001 From: Christophe Deschamps Date: Wed, 20 Feb 2019 12:00:13 +0100 Subject: [PATCH] Fix crash - linphone lib calls on BG thread --- Classes/LinphoneUI/UIChatBubbleTextCell.m | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Classes/LinphoneUI/UIChatBubbleTextCell.m b/Classes/LinphoneUI/UIChatBubbleTextCell.m index 281602762..2260be3d9 100644 --- a/Classes/LinphoneUI/UIChatBubbleTextCell.m +++ b/Classes/LinphoneUI/UIChatBubbleTextCell.m @@ -299,8 +299,7 @@ ChatConversationTableView *tableView = VIEW(ChatConversationView).tableController; UIImage *img = [tableView.imagesInChatroom objectForKey:localImage]; if (img) { - dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, (unsigned long)NULL), - ^(void) { + dispatch_async(dispatch_get_main_queue(), ^ { [_chatRoomDelegate startImageUpload:img assetId:localImage withQuality:(uploadQuality ? [uploadQuality floatValue] : 0.9)]; }); } else {