mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-02-08 16:17:20 +00:00
Fixed insertion of 11th image from clipboard in SendFilesBox.
This commit is contained in:
parent
fb0ceb110e
commit
7b36c91e0d
@ -401,10 +401,10 @@ void PreparedList::mergeToEnd(PreparedList &&other, bool cutToAlbumSize) {
|
||||
size_t(cutToAlbumSize ? kMaxAlbumCount : INT_MAX),
|
||||
files.size() + other.files.size()));
|
||||
for (auto &file : other.files) {
|
||||
files.push_back(std::move(file));
|
||||
if (cutToAlbumSize && files.size() == kMaxAlbumCount) {
|
||||
break;
|
||||
}
|
||||
files.push_back(std::move(file));
|
||||
}
|
||||
if (files.size() > 1 && files.size() <= kMaxAlbumCount) {
|
||||
const auto badIt = ranges::find(
|
||||
|
Loading…
Reference in New Issue
Block a user