[WIP] Stickers editor

This commit is contained in:
Ilya Laktyushin
2024-04-07 20:24:02 +04:00
parent a51c65e268
commit 1e155f3243
4 changed files with 18 additions and 17 deletions

View File

@@ -544,7 +544,7 @@ private final class StickerPackContainer: ASDisplayNode {
if let strongSelf = self {
let _ = (strongSelf.context.engine.stickers.toggleStickerSaved(file: item.file, saved: !isStarred)
|> deliverOnMainQueue).start(next: { [weak self] result in
if let self, let contorller = self.controller, case .generic = result {
if let self, let contorller = self.controller {
contorller.present(UndoOverlayController(presentationData: self.presentationData, content: .sticker(context: context, file: item.file, loop: true, title: nil, text: !isStarred ? self.presentationData.strings.Conversation_StickerAddedToFavorites : self.presentationData.strings.Conversation_StickerRemovedFromFavorites, undoText: nil, customAction: nil), elevatedLayout: false, action: { _ in return false }), in: .window(.root))
}
})