2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

Implement unique gift view box.

This commit is contained in:
John Preston
2024-12-27 17:04:23 +04:00
parent 522ca3b04a
commit 42c350243a
9 changed files with 347 additions and 85 deletions

View File

@@ -2380,7 +2380,7 @@ std::unique_ptr<HistoryView::Media> MediaGiftBox::createView(
message,
HistoryView::GenerateUniqueGiftMedia(message, replacing, raw),
HistoryView::MediaGenericDescriptor{
.maxWidth = st::chatIntroWidth,
.maxWidth = st::msgServiceGiftBoxSize.width(),
.paintBg = HistoryView::UniqueGiftBg(message, raw),
.service = true,
});