Attachment menu improvements

This commit is contained in:
Ilya Laktyushin
2022-02-26 17:48:25 +04:00
parent 5e84216346
commit ec8702ed07
77 changed files with 4533 additions and 325 deletions

View File

@@ -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)