Improve greeting sticker preloading

This commit is contained in:
Ilya Laktyushin
2021-04-30 23:43:39 +04:00
parent 66904581d6
commit 34ec6b2617
10 changed files with 153 additions and 215 deletions

View File

@@ -158,3 +158,8 @@ public protocol FetchManager {
func cancelInteractiveFetches(category: FetchManagerCategory, location: FetchManagerLocation, locationKey: FetchManagerLocationKey, resource: MediaResource)
func fetchStatus(category: FetchManagerCategory, location: FetchManagerLocation, locationKey: FetchManagerLocationKey, resource: MediaResource) -> Signal<MediaResourceStatus, NoError>
}
public protocol PrefetchManager {
var preloadedGreetingSticker: ChatGreetingData { get }
func prepareNextGreetingSticker()
}