mirror of
https://github.com/ichmagmaus111/ghostgram.git
synced 2026-07-16 04:27:18 +02:00
Update Ghostgram features
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user