Skip to content

Commit af65474

Browse files
committed
Various fixes
1 parent edecdd7 commit af65474

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

submodules/TelegramCore/Sources/TelegramEngine/Payments/StarGifts.swift

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1210,6 +1210,10 @@ private final class ProfileGiftsContextImpl {
12101210
if let reference = gift.reference, existingGifts.contains(reference) {
12111211
continue
12121212
}
1213+
var gift = gift
1214+
if gift.reference == reference {
1215+
gift = gift.withPinnedToTop(pinnedToTop)
1216+
}
12131217
updatedGifts.append(gift)
12141218
}
12151219
updatedGifts.sort { lhs, rhs in
@@ -1238,6 +1242,10 @@ private final class ProfileGiftsContextImpl {
12381242
if let reference = gift.reference, existingFilteredGifts.contains(reference) {
12391243
continue
12401244
}
1245+
var gift = gift
1246+
if gift.reference == reference {
1247+
gift = gift.withPinnedToTop(pinnedToTop)
1248+
}
12411249
updatedFilteredGifts.append(gift)
12421250
}
12431251
updatedFilteredGifts.sort { lhs, rhs in

0 commit comments

Comments
 (0)