2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +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

@@ -1640,8 +1640,8 @@ void MainWidget::checkChatBackground() {
});
}
ImagePtr MainWidget::newBackgroundThumb() {
return _background ? _background->data.thumb : ImagePtr();
Image *MainWidget::newBackgroundThumb() {
return _background ? _background->data.thumb : nullptr;
}
void MainWidget::messageDataReceived(ChannelData *channel, MsgId msgId) {