mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Load photo thumbnail only if no inline thumbnail found.
This commit is contained in:
parent
3d85ca2f84
commit
aa46ec8bc1
1 changed files with 4 additions and 3 deletions
|
@ -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…
Add table
Reference in a new issue