2
0
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:
John Preston
2020-10-15 17:27:16 +03:00
parent c2f0bcf933
commit 8d2fa313b7
25 changed files with 409 additions and 420 deletions

View File

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