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

@@ -906,8 +906,10 @@ Data::UniqueGiftOriginalDetails FromTL(
const MTPDstarGiftAttributeOriginalDetails &data) {
auto result = Data::UniqueGiftOriginalDetails();
result.date = data.vdate().v;
result.senderId = peerFromUser(
UserId(data.vsender_id().value_or_empty()));
result.senderId = data.vsender_id()
? peerFromUser(
UserId(data.vsender_id().value_or_empty()))
: PeerId();
result.recipientId = peerFromUser(
UserId(data.vrecipient_id().v));
result.message = data.vmessage()