mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 06:26:18 +00:00
Improve gift layout.
This commit is contained in:
@@ -1006,10 +1006,9 @@ void ReceiptCreditsBox(
|
||||
}
|
||||
|
||||
const auto selfPeerId = session->userPeerId().value;
|
||||
const auto chatPeerId = e.fromGiftsList
|
||||
? e.bareGiftOwnerId
|
||||
: e.barePeerId;
|
||||
const auto giftToSelf = isStarGift && (selfPeerId == chatPeerId);
|
||||
const auto giftToSelf = isStarGift
|
||||
&& (e.barePeerId == selfPeerId)
|
||||
&& (!e.fromGiftsList || e.bareGiftOwnerId == selfPeerId);
|
||||
|
||||
if (!uniqueGift) {
|
||||
Ui::AddSkip(content);
|
||||
|
Reference in New Issue
Block a user