2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-30 22:16:14 +00:00

documents design improved

This commit is contained in:
John Preston
2015-12-10 16:37:45 +03:00
parent 200073b826
commit 6d74140e39
9 changed files with 217 additions and 65 deletions

View File

@@ -1612,6 +1612,7 @@ namespace App {
convert->thumb = thumb;
convert->dc = dc;
convert->size = size;
convert->recountIsImage();
} else {
if (!thumb->isNull() && (convert->thumb->isNull() || convert->thumb->width() < thumb->width() || convert->thumb->height() < thumb->height())) {
convert->thumb = thumb;
@@ -1644,6 +1645,7 @@ namespace App {
result = convert;
} else {
result = new DocumentData(document, access, date, attributes, mime, thumb, dc, size);
result->recountIsImage();
if (result->sticker()) result->sticker()->loc = thumbLocation;
}
documentsData.insert(document, result);
@@ -1658,6 +1660,7 @@ namespace App {
result->thumb = thumb;
result->dc = dc;
result->size = size;
result->recountIsImage();
} else {
if (!thumb->isNull() && (result->thumb->isNull() || result->thumb->width() < thumb->width() || result->thumb->height() < thumb->height())) {
result->thumb = thumb;