File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
submodules/TelegramCore/Sources/TelegramEngine/Payments Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments