From 18d218044c88bfe662c73400ff919bf079cd9581 Mon Sep 17 00:00:00 2001 From: John Preston Date: Thu, 22 Oct 2020 13:23:14 +0300 Subject: [PATCH] Fix crash when adding more files to SendFilesBox. --- Telegram/SourceFiles/boxes/send_files_box.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/boxes/send_files_box.cpp b/Telegram/SourceFiles/boxes/send_files_box.cpp index 3da6299bd..79cf159dd 100644 --- a/Telegram/SourceFiles/boxes/send_files_box.cpp +++ b/Telegram/SourceFiles/boxes/send_files_box.cpp @@ -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; }