mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2026-01-07 13:35:09 +00:00
Fix a loading issue for attachments in feedback
This commit is contained in:
@@ -648,6 +648,7 @@
|
||||
attachment.isLoading = YES;
|
||||
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:attachment.sourceURL]];
|
||||
[NSURLConnection sendAsynchronousRequest:request queue:self.thumbnailQueue completionHandler:^(NSURLResponse *response, NSData *responseData, NSError *err) {
|
||||
attachment.isLoading = NO;
|
||||
if (responseData.length) {
|
||||
dispatch_async(dispatch_get_main_queue(), ^{
|
||||
[attachment replaceData:responseData];
|
||||
|
||||
Reference in New Issue
Block a user