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