2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Improve gift layout.

This commit is contained in:
John Preston
2025-01-06 17:42:34 +04:00
parent e6060ea277
commit 6844f88567
5 changed files with 30 additions and 18 deletions

View File

@@ -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);