You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: submodules/TelegramUI/Components/Gifts/GiftStoreScreen/Sources/GiftStoreScreen.swift
+21-3Lines changed: 21 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -519,7 +519,13 @@ final class GiftStoreScreenComponent: Component {
519
519
}else{
520
520
returnfalse
521
521
}
522
-
}
522
+
}.sorted(by:{ lhs, rhs in
523
+
if case let.model(_, lhsFile, _)= lhs, case let.model(_, rhsFile, _)= rhs,let lhsCount =self.state?.starGiftsState?.attributeCount[.model(lhsFile.fileId.id)],let rhsCount =self.state?.starGiftsState?.attributeCount[.model(rhsFile.fileId.id)]{
letselectedBackdropAttributes= currentFilterAttributes.filter{ attribute in
@@ -709,7 +721,13 @@ final class GiftStoreScreenComponent: Component {
709
721
}else{
710
722
returnfalse
711
723
}
712
-
}
724
+
}.sorted(by:{ lhs, rhs in
725
+
if case let.pattern(_, lhsFile, _)= lhs, case let.pattern(_, rhsFile, _)= rhs,let lhsCount =self.state?.starGiftsState?.attributeCount[.pattern(lhsFile.fileId.id)],let rhsCount =self.state?.starGiftsState?.attributeCount[.pattern(rhsFile.fileId.id)]{
0 commit comments