mirror of
https://github.com/Qz3rK/tdesktop.git
synced 2026-07-03 14:15:08 +02:00
Allow chats list preview for narrow photos.
This commit is contained in:
@@ -121,8 +121,8 @@ struct AlbumCounts {
|
||||
ImageRoundRadius radius,
|
||||
bool spoiler) {
|
||||
const auto original = image->original();
|
||||
if (original.width() * 10 < original.height()
|
||||
|| original.height() * 10 < original.width()) {
|
||||
if (original.width() * 20 < original.height()
|
||||
|| original.height() * 20 < original.width()) {
|
||||
return QImage();
|
||||
}
|
||||
const auto factor = style::DevicePixelRatio();
|
||||
|
||||
Reference in New Issue
Block a user