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:
@@ -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()
|
||||
|
Reference in New Issue
Block a user