@@ -35,7 +35,7 @@ private final class FeaturedInteraction {
35
35
36
36
private final class FeaturedPackEntry : Identifiable , Comparable {
37
37
let index : Int
38
- let info : StickerPackCollectionInfo
38
+ let info : StickerPackCollectionInfo . Accessor
39
39
let theme : PresentationTheme
40
40
let strings : PresentationStrings
41
41
let topItems : [ StickerPackItem ]
@@ -44,7 +44,7 @@ private final class FeaturedPackEntry: Identifiable, Comparable {
44
44
let topSeparator : Bool
45
45
let regularInsets : Bool
46
46
47
- init ( index: Int , info: StickerPackCollectionInfo , theme: PresentationTheme , strings: PresentationStrings , topItems: [ StickerPackItem ] , installed: Bool , unread: Bool , topSeparator: Bool , regularInsets: Bool = false ) {
47
+ init ( index: Int , info: StickerPackCollectionInfo . Accessor , theme: PresentationTheme , strings: PresentationStrings , topItems: [ StickerPackItem ] , installed: Bool , unread: Bool , topSeparator: Bool , regularInsets: Bool = false ) {
48
48
self . index = index
49
49
self . info = info
50
50
self . theme = theme
@@ -98,9 +98,9 @@ private final class FeaturedPackEntry: Identifiable, Comparable {
98
98
func item( context: AccountContext , interaction: FeaturedInteraction , isOther: Bool ) -> GridItem {
99
99
let info = self . info
100
100
return StickerPaneSearchGlobalItem ( context: context, theme: self . theme, strings: self . strings, listAppearance: true , fillsRow: false , info: self . info, topItems: self . topItems, topSeparator: self . topSeparator, regularInsets: self . regularInsets, installed: self . installed, unread: self . unread, open: {
101
- interaction. openPack ( info)
101
+ interaction. openPack ( info. _parse ( ) )
102
102
} , install: {
103
- interaction. installPack ( info, !self . installed)
103
+ interaction. installPack ( info. _parse ( ) , !self . installed)
104
104
} , getItemIsPreviewed: { item in
105
105
return interaction. getItemIsPreviewed ( item)
106
106
} , itemContext: interaction. itemContext, sectionTitle: isOther ? self . strings. FeaturedStickers_OtherSection : nil )
@@ -1041,7 +1041,7 @@ private enum FeaturedSearchEntryId: Equatable, Hashable {
1041
1041
1042
1042
private enum FeaturedSearchEntry : Identifiable , Comparable {
1043
1043
case sticker( index: Int , code: String ? , stickerItem: FoundStickerItem , theme: PresentationTheme )
1044
- case global( index: Int , info: StickerPackCollectionInfo , topItems: [ StickerPackItem ] , installed: Bool , topSeparator: Bool )
1044
+ case global( index: Int , info: StickerPackCollectionInfo . Accessor , topItems: [ StickerPackItem ] , installed: Bool , topSeparator: Bool )
1045
1045
1046
1046
var stableId : FeaturedSearchEntryId {
1047
1047
switch self {
@@ -1108,9 +1108,9 @@ private enum FeaturedSearchEntry: Identifiable, Comparable {
1108
1108
} )
1109
1109
case let . global( _, info, topItems, installed, topSeparator) :
1110
1110
return StickerPaneSearchGlobalItem ( context: context, theme: theme, strings: strings, listAppearance: true , fillsRow: true , info: info, topItems: topItems, topSeparator: topSeparator, regularInsets: false , installed: installed, unread: false , open: {
1111
- interaction. open ( info)
1111
+ interaction. open ( info. _parse ( ) )
1112
1112
} , install: {
1113
- interaction. install ( info, topItems, !installed)
1113
+ interaction. install ( info. _parse ( ) , topItems, !installed)
1114
1114
} , getItemIsPreviewed: { item in
1115
1115
return interaction. getItemIsPreviewed ( item)
1116
1116
} , itemContext: itemContext)
@@ -1436,7 +1436,7 @@ private final class FeaturedPaneSearchContentNode: ASDisplayNode {
1436
1436
}
1437
1437
}
1438
1438
}
1439
- entries. append ( . global( index: index, info: info, topItems: topItems, installed: installed, topSeparator: !isFirstGlobal) )
1439
+ entries. append ( . global( index: index, info: StickerPackCollectionInfo . Accessor ( info) , topItems: topItems, installed: installed, topSeparator: !isFirstGlobal) )
1440
1440
isFirstGlobal = false
1441
1441
index += 1
1442
1442
}
0 commit comments