Improved support for autosaving incoming photos

Improved perceived sticker loading time
This commit is contained in:
Peter
2018-10-19 20:32:02 +03:00
parent 9848dcf34b
commit dfa4e6692a
36 changed files with 396 additions and 125 deletions

View File

@@ -163,7 +163,7 @@ final class ChatMediaInputTrendingPane: ChatMediaInputPane {
let controller = StickerPackPreviewController(account: strongSelf.account, stickerPack: .id(id: info.id.id, accessHash: info.accessHash), parentNavigationController: strongSelf.controllerInteraction.navigationController())
controller.sendSticker = { fileReference in
if let strongSelf = self {
strongSelf.controllerInteraction.sendSticker(fileReference)
strongSelf.controllerInteraction.sendSticker(fileReference, false)
}
}
strongSelf.controllerInteraction.presentController(controller, ViewControllerPresentationArguments(presentationAnimation: .modalSheet))