mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-02-20 23:27:23 +00:00
Disabled sending images with bad size from remoteContent for albums.
This commit is contained in:
parent
3767483977
commit
c6eccc655f
@ -497,8 +497,9 @@ void EditCaptionBox::createEditMediaButton() {
|
||||
"image/png",
|
||||
"video/mp4",
|
||||
};
|
||||
if ((ranges::find(albumMimes, list.files.front().mime)
|
||||
== end(albumMimes))) {
|
||||
const auto file = &list.files.front();
|
||||
if (ranges::find(albumMimes, file->mime) == end(albumMimes)
|
||||
|| file->type == Storage::PreparedFile::AlbumType::None) {
|
||||
Ui::show(
|
||||
Box<InformBox>(lang(lng_edit_media_album_error)),
|
||||
LayerOption::KeepOther);
|
||||
|
Loading…
Reference in New Issue
Block a user