Fix crash when adding more files to SendFilesBox.

This commit is contained in:
John Preston 2020-10-22 13:23:14 +03:00
parent 12debce246
commit 18d218044c
1 changed files with 3 additions and 1 deletions

View File

@ -500,7 +500,9 @@ void SendFilesBox::generatePreviewFrom(int fromBlock) {
continue;
}
}
if (type != Type::File && type != Type::None) {
if (type != Type::File
&& type != Type::Music
&& type != Type::None) {
if (albumStart < 0) {
albumStart = i;
}