Run uploadVideo on main thread

This commit is contained in:
Arnfried Griesert
2024-02-06 06:17:31 +01:00
parent 3c08657eb2
commit b4285c367b

View File

@@ -8095,7 +8095,9 @@ static CGSize kThreadListBarButtonItemImageSize;
// First make a copy of the video in the temp directory because the video at videoURL
// is a copy by the iOS photo picker and will be dismissed when this completion block ends
NSURL *videoCopy = [self makeVideoCopy:videoURL];
[self uploadVideo:videoCopy];
dispatch_async(dispatch_get_main_queue(), ^{
[self uploadVideo:videoCopy];
});
}
}];
}