mirror of https://github.com/procxx/kepka.git
Add caption to first item of album istead of sending separated message.
This commit is contained in:
parent
2ded5870b5
commit
c7c1deab81
|
@ -4309,7 +4309,7 @@ void ApiWrap::sendFiles(
|
||||||
return list.files.front().mime == qstr("image/webp");
|
return list.files.front().mime == qstr("image/webp");
|
||||||
};
|
};
|
||||||
if ((list.files.size() > 1 || isSticker())
|
if ((list.files.size() > 1 || isSticker())
|
||||||
&& !caption.text.isEmpty()) {
|
&& !caption.text.isEmpty() && !album) {
|
||||||
auto message = MessageToSend(options.history);
|
auto message = MessageToSend(options.history);
|
||||||
message.textWithTags = std::move(caption);
|
message.textWithTags = std::move(caption);
|
||||||
message.replyTo = options.replyTo;
|
message.replyTo = options.replyTo;
|
||||||
|
@ -4344,6 +4344,7 @@ void ApiWrap::sendFiles(
|
||||||
to,
|
to,
|
||||||
caption,
|
caption,
|
||||||
album));
|
album));
|
||||||
|
caption = TextWithTags();
|
||||||
}
|
}
|
||||||
if (album) {
|
if (album) {
|
||||||
_sendingAlbums.emplace(album->groupId, album);
|
_sendingAlbums.emplace(album->groupId, album);
|
||||||
|
|
Loading…
Reference in New Issue