mirror of
https://github.com/vale981/tdesktop
synced 2025-03-04 17:21:40 -05:00
Use userpic if no photo thumbnail is loaded.
This commit is contained in:
parent
d63e50944a
commit
bd0aee2f77
1 changed files with 9 additions and 0 deletions
|
@ -2528,6 +2528,15 @@ void OverlayWidget::validatePhotoCurrentImage() {
|
|||
validatePhotoImage(_photo->thumbnail(), true);
|
||||
validatePhotoImage(_photo->thumbnailSmall(), true);
|
||||
validatePhotoImage(_photo->thumbnailInline(), true);
|
||||
if (_current.isNull()
|
||||
&& _peer
|
||||
&& !_msgid
|
||||
&& _peer->userpicLoaded()
|
||||
&& _peer->userpicLocation().file().valid()) {
|
||||
validatePhotoImage(
|
||||
Images::Create(_peer->userpicLocation()).get(),
|
||||
true);
|
||||
}
|
||||
if (_current.isNull()) {
|
||||
_photo->loadThumbnailSmall(fileOrigin());
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue