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:
@@ -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();
|
||||
|
Reference in New Issue
Block a user