Input node improvements

This commit is contained in:
Ali
2022-06-28 22:54:05 +02:00
parent 575605f4d0
commit 131be5aaab
51 changed files with 2586 additions and 1363 deletions

View File

@@ -454,7 +454,7 @@ final class ChatMediaInputStickerGridItemNode: GridItemNode {
func updatePreviewing(animated: Bool) {
var isPreviewing = false
if let (_, item, _) = self.currentState, let interaction = self.inputNodeInteraction {
isPreviewing = interaction.previewedStickerPackItem == .pack(item)
isPreviewing = interaction.previewedStickerPackItem == .pack(item.file)
}
if self.currentIsPreviewing != isPreviewing {
self.currentIsPreviewing = isPreviewing