mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-24 07:05:35 +00:00
Video avatar fixes
This commit is contained in:
@@ -1274,6 +1274,12 @@
|
||||
[strongSelf stopVideoPlayback:false];
|
||||
}
|
||||
};
|
||||
cropController.isVideoPlaying = ^bool{
|
||||
__strong TGPhotoEditorController *strongSelf = weakSelf;
|
||||
if (strongSelf == nil)
|
||||
return false;
|
||||
return strongSelf->_isPlaying;
|
||||
};
|
||||
cropController.togglePlayback = ^{
|
||||
__strong TGPhotoEditorController *strongSelf = weakSelf;
|
||||
if (strongSelf == nil || !strongSelf->_item.isVideo)
|
||||
@@ -2902,5 +2908,4 @@
|
||||
return self.item.originalSize;
|
||||
}
|
||||
|
||||
|
||||
@end
|
||||
|
||||
Reference in New Issue
Block a user