mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2026-02-05 02:41:05 +00:00
Another fix for screenshot feature in feedback
Older devices (iPhone 4S and iPad 3 running iOS 8) would still show a previously captured screenshot instead of the current one, because it takes too long to get the image from the Asset Library than the assumed 0.5s. Increasing to 1.5s fixes the issue also for these.
This commit is contained in:
@@ -1122,7 +1122,7 @@ NSString *const kBITFeedbackUpdateAttachmentThumbnail = @"BITFeedbackUpdateAttac
|
||||
}
|
||||
|
||||
-(void)screenshotNotificationReceived:(NSNotification *)notification {
|
||||
double amountOfSeconds = 0.5;
|
||||
double amountOfSeconds = 1.5;
|
||||
dispatch_time_t delayTime = dispatch_time(DISPATCH_TIME_NOW, (int64_t)(amountOfSeconds * NSEC_PER_SEC));
|
||||
|
||||
dispatch_after(delayTime, dispatch_get_main_queue(), ^{
|
||||
|
||||
Reference in New Issue
Block a user