2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00

Use both thumbnails in photos and documents.

Fixes #5602.
This commit is contained in:
John Preston
2019-01-25 18:37:28 +04:00
parent a70e72f75d
commit a1baa23a52
56 changed files with 1358 additions and 878 deletions

View File

@@ -352,11 +352,10 @@ void GifsListWidget::selectInlineResult(int row, int column) {
auto item = _rows[row].items[column];
if (const auto photo = item->getPhoto()) {
if (photo->medium->loaded() || photo->thumb->loaded()) {
if (photo->thumbnail()->loaded()) {
_photoChosen.fire_copy(photo);
} else if (!photo->medium->loading()) {
photo->thumb->loadEvenCancelled(Data::FileOrigin());
photo->medium->loadEvenCancelled(Data::FileOrigin());
} else if (!photo->thumbnail()->loading()) {
photo->thumbnail()->loadEvenCancelled(Data::FileOrigin());
}
} else if (const auto document = item->getDocument()) {
if (document->loaded()) {