mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 14:20:20 +00:00
Chat wallpaper improvements
This commit is contained in:
@@ -338,10 +338,10 @@
|
||||
|
||||
- (void)presentPhotoEditorForItem:(id<TGModernGalleryEditableItem>)item tab:(TGPhotoEditorTab)tab
|
||||
{
|
||||
[self presentPhotoEditorForItem:item tab:tab snapshots:@[]];
|
||||
[self presentPhotoEditorForItem:item tab:tab snapshots:@[] fromRect:CGRectZero];
|
||||
}
|
||||
|
||||
- (void)presentPhotoEditorForItem:(id<TGModernGalleryEditableItem>)item tab:(TGPhotoEditorTab)tab snapshots:(NSArray *)snapshots
|
||||
- (void)presentPhotoEditorForItem:(id<TGModernGalleryEditableItem>)item tab:(TGPhotoEditorTab)tab snapshots:(NSArray *)snapshots fromRect:(CGRect)fromRect
|
||||
{
|
||||
__weak TGMediaPickerGalleryModel *weakSelf = self;
|
||||
|
||||
@@ -356,12 +356,15 @@
|
||||
|
||||
CGRect refFrame = CGRectZero;
|
||||
UIView *editorReferenceView = [self referenceViewForItem:item frame:&refFrame];
|
||||
if (!CGRectEqualToRect(fromRect, CGRectZero)) {
|
||||
refFrame = fromRect;
|
||||
}
|
||||
UIView *referenceView = nil;
|
||||
UIImage *screenImage = nil;
|
||||
UIView *referenceParentView = nil;
|
||||
UIImage *image = nil;
|
||||
|
||||
UIView<TGPhotoDrawingEntitiesView> *entitiesView = nil;
|
||||
UIView<TGPhotoDrawingEntitiesView> *entitiesView = nil;
|
||||
|
||||
id<TGMediaEditableItem> editableMediaItem = item.editableMediaItem;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user