2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

Send files grouped in albums, show captions.

This commit is contained in:
John Preston
2020-10-16 20:48:27 +03:00
parent 86612f0a67
commit 85d08c8f52
18 changed files with 292 additions and 99 deletions

View File

@@ -763,6 +763,9 @@ void SendFilesBox::addPreparedAsyncFile(Ui::PreparedFile &&file) {
if (_list.files.size() > count) {
refreshAllAfterChanges(count);
}
if (!_preparing && _whenReadySend) {
_whenReadySend();
}
}
void SendFilesBox::addFile(Ui::PreparedFile &&file) {
@@ -893,6 +896,12 @@ void SendFilesBox::send(
&& !options.scheduled) {
return sendScheduled();
}
if (_preparing) {
_whenReadySend = [=] {
send(options, ctrlShiftEnter);
};
return;
}
auto way = _sendWay.current();
auto oldWay = Core::App().settings().sendFilesWay();