mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 14:45:14 +00:00
Added ability to see attached stickers on photos.
This commit is contained in:
@@ -75,6 +75,7 @@ public:
|
||||
uint64 access = 0;
|
||||
QByteArray fileReference;
|
||||
TimeId date = 0;
|
||||
bool hasSticker = false;
|
||||
|
||||
PeerData *peer = nullptr; // for chat and channel photos connection
|
||||
// geo, caption
|
||||
|
@@ -1661,6 +1661,7 @@ not_null<PhotoData*> Session::processPhoto(
|
||||
data.vaccess_hash.v,
|
||||
data.vfile_reference.v,
|
||||
data.vdate.v,
|
||||
data.is_has_stickers(),
|
||||
thumbnailInline,
|
||||
thumbnailSmall,
|
||||
thumbnail,
|
||||
@@ -1675,6 +1676,7 @@ not_null<PhotoData*> Session::photo(
|
||||
const uint64 &access,
|
||||
const QByteArray &fileReference,
|
||||
TimeId date,
|
||||
bool hasSticker,
|
||||
const ImagePtr &thumbnailInline,
|
||||
const ImagePtr &thumbnailSmall,
|
||||
const ImagePtr &thumbnail,
|
||||
@@ -1685,6 +1687,7 @@ not_null<PhotoData*> Session::photo(
|
||||
access,
|
||||
fileReference,
|
||||
date,
|
||||
hasSticker,
|
||||
thumbnailInline,
|
||||
thumbnailSmall,
|
||||
thumbnail,
|
||||
@@ -1747,6 +1750,7 @@ PhotoData *Session::photoFromWeb(
|
||||
uint64(0),
|
||||
QByteArray(),
|
||||
unixtime(),
|
||||
false,
|
||||
thumbnailInline,
|
||||
thumbnailSmall,
|
||||
thumbnail,
|
||||
@@ -1796,6 +1800,7 @@ void Session::photoApplyFields(
|
||||
data.vaccess_hash.v,
|
||||
data.vfile_reference.v,
|
||||
data.vdate.v,
|
||||
data.is_has_stickers(),
|
||||
thumbnailInline,
|
||||
thumbnailSmall,
|
||||
thumbnail,
|
||||
@@ -1808,6 +1813,7 @@ void Session::photoApplyFields(
|
||||
const uint64 &access,
|
||||
const QByteArray &fileReference,
|
||||
TimeId date,
|
||||
bool hasSticker,
|
||||
const ImagePtr &thumbnailInline,
|
||||
const ImagePtr &thumbnailSmall,
|
||||
const ImagePtr &thumbnail,
|
||||
@@ -1818,6 +1824,7 @@ void Session::photoApplyFields(
|
||||
photo->access = access;
|
||||
photo->fileReference = fileReference;
|
||||
photo->date = date;
|
||||
photo->hasSticker = hasSticker;
|
||||
photo->updateImages(
|
||||
thumbnailInline,
|
||||
thumbnailSmall,
|
||||
|
@@ -342,6 +342,7 @@ public:
|
||||
const uint64 &access,
|
||||
const QByteArray &fileReference,
|
||||
TimeId date,
|
||||
bool hasSticker,
|
||||
const ImagePtr &thumbnailInline,
|
||||
const ImagePtr &thumbnailSmall,
|
||||
const ImagePtr &thumbnail,
|
||||
@@ -574,6 +575,7 @@ private:
|
||||
const uint64 &access,
|
||||
const QByteArray &fileReference,
|
||||
TimeId date,
|
||||
bool hasSticker,
|
||||
const ImagePtr &thumbnailInline,
|
||||
const ImagePtr &thumbnailSmall,
|
||||
const ImagePtr &thumbnail,
|
||||
|
Reference in New Issue
Block a user