Fix crash - linphone lib calls on BG thread

This commit is contained in:
Christophe Deschamps 2019-02-20 12:00:13 +01:00 committed by Danmei Chen
parent f9328106d0
commit 4c2fe06f50

View file

@ -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 {