mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
Various fixes
This commit is contained in:
parent
edecdd7fec
commit
af654744b0
@ -1210,6 +1210,10 @@ private final class ProfileGiftsContextImpl {
|
|||||||
if let reference = gift.reference, existingGifts.contains(reference) {
|
if let reference = gift.reference, existingGifts.contains(reference) {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
var gift = gift
|
||||||
|
if gift.reference == reference {
|
||||||
|
gift = gift.withPinnedToTop(pinnedToTop)
|
||||||
|
}
|
||||||
updatedGifts.append(gift)
|
updatedGifts.append(gift)
|
||||||
}
|
}
|
||||||
updatedGifts.sort { lhs, rhs in
|
updatedGifts.sort { lhs, rhs in
|
||||||
@ -1238,6 +1242,10 @@ private final class ProfileGiftsContextImpl {
|
|||||||
if let reference = gift.reference, existingFilteredGifts.contains(reference) {
|
if let reference = gift.reference, existingFilteredGifts.contains(reference) {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
var gift = gift
|
||||||
|
if gift.reference == reference {
|
||||||
|
gift = gift.withPinnedToTop(pinnedToTop)
|
||||||
|
}
|
||||||
updatedFilteredGifts.append(gift)
|
updatedFilteredGifts.append(gift)
|
||||||
}
|
}
|
||||||
updatedFilteredGifts.sort { lhs, rhs in
|
updatedFilteredGifts.sort { lhs, rhs in
|
||||||
|
Loading…
x
Reference in New Issue
Block a user