mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
Fix trending packs dismissal
This commit is contained in:
parent
5180ffab4a
commit
ee333ffb69
@ -831,8 +831,13 @@ final class ChatMediaInputNode: ChatInputNode {
|
|||||||
}
|
}
|
||||||
))
|
))
|
||||||
}
|
}
|
||||||
}, dismissTrendingPacks: { packIds in
|
}, dismissTrendingPacks: { _ in
|
||||||
let _ = ApplicationSpecificNotice.setDismissedTrendingStickerPacks(accountManager: context.sharedContext.accountManager, values: packIds.map { $0.id }).start()
|
let _ = (context.account.viewTracker.featuredStickerPacks()
|
||||||
|
|> take(1)
|
||||||
|
|> deliverOnMainQueue).start(next: { packs in
|
||||||
|
let ids = packs.map { $0.info.id.id }
|
||||||
|
let _ = ApplicationSpecificNotice.setDismissedTrendingStickerPacks(accountManager: context.sharedContext.accountManager, values: ids).start()
|
||||||
|
})
|
||||||
}, toggleSearch: { [weak self] value, searchMode, query in
|
}, toggleSearch: { [weak self] value, searchMode, query in
|
||||||
if let strongSelf = self {
|
if let strongSelf = self {
|
||||||
if let searchMode = searchMode, value {
|
if let searchMode = searchMode, value {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user