mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-28 13:08:56 +00:00
Load photo thumbnail only if no inline thumbnail found.
This commit is contained in:
parent
3d85ca2f84
commit
aa46ec8bc1
@ -109,7 +109,8 @@ void Photo::ensureDataMediaCreated() const {
|
||||
void Photo::dataMediaCreated() const {
|
||||
Expects(_dataMedia != nullptr);
|
||||
|
||||
if (!_dataMedia->image(PhotoSize::Large)
|
||||
if (_data->inlineThumbnailBytes().isEmpty()
|
||||
&& !_dataMedia->image(PhotoSize::Large)
|
||||
&& !_dataMedia->image(PhotoSize::Thumbnail)) {
|
||||
_dataMedia->wanted(PhotoSize::Small, _realParent->fullId());
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user