Update Ghostgram features

This commit is contained in:
ichmagmaus 812
2026-03-07 18:15:32 +01:00
parent 32b0dddcd9
commit 13a43b9068
902 changed files with 148302 additions and 62355 deletions
@@ -75,11 +75,13 @@ public func addSavedSticker(postbox: Postbox, network: Network, file: TelegramMe
switch result {
case .stickerSetNotModified:
break
case let .stickerSet(_, packs, _, _):
case let .stickerSet(stickerSetData):
let packs = stickerSetData.packs
var stringRepresentationsByFile: [MediaId: [String]] = [:]
for pack in packs {
switch pack {
case let .stickerPack(text, fileIds):
case let .stickerPack(stickerPackData):
let (text, fileIds) = (stickerPackData.emoticon, stickerPackData.documents)
for fileId in fileIds {
let mediaId = MediaId(namespace: Namespaces.Media.CloudFile, id: fileId)
if stringRepresentationsByFile[mediaId] == nil {