mirror of https://github.com/procxx/kepka.git
				
				
				
			Use userpic if no photo thumbnail is loaded.
This commit is contained in:
		
							parent
							
								
									d63e50944a
								
							
						
					
					
						commit
						bd0aee2f77
					
				| 
						 | 
					@ -2528,6 +2528,15 @@ void OverlayWidget::validatePhotoCurrentImage() {
 | 
				
			||||||
	validatePhotoImage(_photo->thumbnail(), true);
 | 
						validatePhotoImage(_photo->thumbnail(), true);
 | 
				
			||||||
	validatePhotoImage(_photo->thumbnailSmall(), true);
 | 
						validatePhotoImage(_photo->thumbnailSmall(), true);
 | 
				
			||||||
	validatePhotoImage(_photo->thumbnailInline(), 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()) {
 | 
						if (_current.isNull()) {
 | 
				
			||||||
		_photo->loadThumbnailSmall(fileOrigin());
 | 
							_photo->loadThumbnailSmall(fileOrigin());
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue