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

Generate mini-previews for photos and files.

This commit is contained in:
John Preston
2021-10-01 18:58:41 +04:00
parent 8c21fad642
commit 792b9090a7
7 changed files with 226 additions and 14 deletions

View File

@@ -926,9 +926,13 @@ bool HistoryService::needCheck() const {
}
ItemPreview HistoryService::toPreview(ToPreviewOptions options) const {
// #TODO minis generate images
// Don't show for service messages (chat photo changed).
// Because larger version is shown exactly to the left of the preview.
//auto media = _media ? _media->toPreview(options) : ItemPreview();
return {
.text = textcmdLink(1, TextUtilities::Clean(notificationText())),
//.images = std::move(media.images),
//.loadingContext = std::move(media.loadingContext),
};
}