mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 14:20:20 +00:00
Attachment menu improvements
This commit is contained in:
@@ -927,6 +927,11 @@
|
||||
grouping = false;
|
||||
}
|
||||
}
|
||||
for (TGPhotoPaintEntity *entity in adjustments.paintingData.entities) {
|
||||
if (entity.animated) {
|
||||
grouping = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -942,8 +947,12 @@
|
||||
|
||||
NSAttributedString *caption = [editingContext captionForItem:asset];
|
||||
|
||||
if (editingContext.isForcedCaption && num > 0) {
|
||||
caption = nil;
|
||||
if (editingContext.isForcedCaption) {
|
||||
if (grouping && num > 0) {
|
||||
caption = nil;
|
||||
} else if (!grouping && num < selectedItems.count - 1) {
|
||||
caption = nil;
|
||||
}
|
||||
}
|
||||
|
||||
switch (asset.type)
|
||||
|
||||
Reference in New Issue
Block a user