[WIP] Stickers editor

This commit is contained in:
Ilya Laktyushin
2024-04-07 18:39:05 +04:00
parent cf9699a1ba
commit a51c65e268
9 changed files with 151 additions and 21 deletions

View File

@@ -14362,7 +14362,7 @@ public final class ChatControllerImpl: TelegramBaseController, ChatController, G
Queue.mainQueue().after(3.0) {
if let message = self.chatDisplayNode.historyNode.lastVisbleMesssage(), let file = message.media.first(where: { $0 is TelegramMediaFile }) as? TelegramMediaFile, file.isSticker {
self.context.engine.stickers.addRecentlyUsedSticker(file: file)
self.context.engine.stickers.addRecentlyUsedSticker(fileReference: .message(message: MessageReference(message), media: file))
}
}
}