mirror of
https://github.com/vale981/tdesktop
synced 2025-03-05 09:41:41 -05:00
Add caption to first item of album istead of sending separated message.
This commit is contained in:
parent
2ded5870b5
commit
c7c1deab81
1 changed files with 2 additions and 1 deletions
|
@ -4309,7 +4309,7 @@ void ApiWrap::sendFiles(
|
|||
return list.files.front().mime == qstr("image/webp");
|
||||
};
|
||||
if ((list.files.size() > 1 || isSticker())
|
||||
&& !caption.text.isEmpty()) {
|
||||
&& !caption.text.isEmpty() && !album) {
|
||||
auto message = MessageToSend(options.history);
|
||||
message.textWithTags = std::move(caption);
|
||||
message.replyTo = options.replyTo;
|
||||
|
@ -4344,6 +4344,7 @@ void ApiWrap::sendFiles(
|
|||
to,
|
||||
caption,
|
||||
album));
|
||||
caption = TextWithTags();
|
||||
}
|
||||
if (album) {
|
||||
_sendingAlbums.emplace(album->groupId, album);
|
||||
|
|
Loading…
Add table
Reference in a new issue