2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 22:46:10 +00:00

Add unique gifts link preview.

This commit is contained in:
John Preston
2025-01-07 12:45:33 +04:00
parent 017535cf7b
commit 428e90a844
18 changed files with 189 additions and 48 deletions

View File

@@ -224,6 +224,7 @@ bool WebPageData::applyChanges(
WebPageCollage &&newCollage,
std::unique_ptr<Iv::Data> newIv,
std::unique_ptr<WebPageStickerSet> newStickerSet,
std::shared_ptr<Data::UniqueGift> newUniqueGift,
int newDuration,
const QString &newAuthor,
bool newHasLargeMedia,
@@ -278,6 +279,7 @@ bool WebPageData::applyChanges(
&& (!iv == !newIv)
&& (!iv || iv->partial() == newIv->partial())
&& (!stickerSet == !newStickerSet)
&& (!uniqueGift == !newUniqueGift)
&& duration == newDuration
&& author == resultAuthor
&& hasLargeMedia == (newHasLargeMedia ? 1 : 0)
@@ -300,6 +302,7 @@ bool WebPageData::applyChanges(
collage = std::move(newCollage);
iv = std::move(newIv);
stickerSet = std::move(newStickerSet);
uniqueGift = std::move(newUniqueGift);
duration = newDuration;
author = resultAuthor;
pendingTill = newPendingTill;