mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 14:38:15 +00:00
Add setting for grouping files.
This commit is contained in:
@@ -4213,8 +4213,7 @@ void ApiWrap::sendFiles(
|
||||
const SendAction &action) {
|
||||
const auto haveCaption = !caption.text.isEmpty();
|
||||
const auto isAlbum = (album != nullptr);
|
||||
const auto compressImages = (type == SendMediaType::Photo);
|
||||
if (haveCaption && !list.canAddCaption(isAlbum, compressImages)) {
|
||||
if (haveCaption && !list.canAddCaption(isAlbum)) {
|
||||
auto message = MessageToSend(action.history);
|
||||
message.textWithTags = std::move(caption);
|
||||
message.action = action;
|
||||
|
Reference in New Issue
Block a user