mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-08-08 08:31:13 +00:00
Attempt to fix missing class on iOS 9.0.x
This commit is contained in:
parent
14b59eba63
commit
04bc74b0e7
@ -735,7 +735,16 @@
|
||||
{
|
||||
PHImageRequestID token = PHInvalidImageRequestID;
|
||||
|
||||
if (asset.subtypes & TGMediaAssetSubtypePhotoLive)
|
||||
bool processLive = false;
|
||||
if (asset.subtypes & TGMediaAssetSubtypePhotoLive) {
|
||||
if (iosMajorVersion() < 9 || (iosMajorVersion() == 9 && iosMinorVersion() < 1)) {
|
||||
processLive = false;
|
||||
} else {
|
||||
processLive = true;
|
||||
}
|
||||
}
|
||||
|
||||
if (processLive)
|
||||
{
|
||||
PHLivePhotoRequestOptions *requestOptions = [[PHLivePhotoRequestOptions alloc] init];
|
||||
requestOptions.networkAccessAllowed = true;
|
||||
@ -830,7 +839,16 @@
|
||||
{
|
||||
PHImageRequestID token = PHInvalidImageRequestID;
|
||||
|
||||
if (asset.subtypes & TGMediaAssetSubtypePhotoLive)
|
||||
bool processLive = false;
|
||||
if (asset.subtypes & TGMediaAssetSubtypePhotoLive) {
|
||||
if (iosMajorVersion() < 9 || (iosMajorVersion() == 9 && iosMinorVersion() < 1)) {
|
||||
processLive = false;
|
||||
} else {
|
||||
processLive = true;
|
||||
}
|
||||
}
|
||||
|
||||
if (processLive)
|
||||
{
|
||||
NSString *filePath = [NSTemporaryDirectory() stringByAppendingPathComponent:[NSString stringWithFormat:@"%@.mov", asset.identifier]];
|
||||
NSURL *fileUrl = [NSURL fileURLWithPath:filePath];
|
||||
|
Loading…
x
Reference in New Issue
Block a user