mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-11-27 18:42:25 +00:00
no message
This commit is contained in:
parent
df33221c66
commit
707558f331
@ -2068,7 +2068,7 @@ func replayFinalState(accountPeerId: PeerId, mediaBox: MediaBox, modifier: Modif
|
|||||||
}
|
}
|
||||||
|
|
||||||
switch set {
|
switch set {
|
||||||
case let .stickerSet(flags, _, _, _, _, _, _):
|
case let .stickerSet(flags, _, _, _, _, _, _, _):
|
||||||
if (flags & (1 << 3)) != 0 {
|
if (flags & (1 << 3)) != 0 {
|
||||||
namespace = Namespaces.ItemCollection.CloudMaskPacks
|
namespace = Namespaces.ItemCollection.CloudMaskPacks
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@ -45,7 +45,7 @@ func remoteStickerPack(network: Network, reference: StickerPackReference) -> Sig
|
|||||||
case let .stickerSet(set, packs, documents):
|
case let .stickerSet(set, packs, documents):
|
||||||
let namespace: ItemCollectionId.Namespace
|
let namespace: ItemCollectionId.Namespace
|
||||||
switch set {
|
switch set {
|
||||||
case let .stickerSet(flags, _, _, _, _, _, _):
|
case let .stickerSet(flags, _, _, _, _, _, _, _):
|
||||||
if (flags & (1 << 3)) != 0 {
|
if (flags & (1 << 3)) != 0 {
|
||||||
namespace = Namespaces.ItemCollection.CloudMaskPacks
|
namespace = Namespaces.ItemCollection.CloudMaskPacks
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@ -49,7 +49,7 @@ func managedRecentStickers(postbox: Postbox, network: Network) -> Signal<Void, N
|
|||||||
switch result {
|
switch result {
|
||||||
case .recentStickersNotModified:
|
case .recentStickersNotModified:
|
||||||
return .single(nil)
|
return .single(nil)
|
||||||
case let .recentStickers(_, stickers):
|
case let .recentStickers(_, _, stickers, _):
|
||||||
var items: [OrderedItemListEntry] = []
|
var items: [OrderedItemListEntry] = []
|
||||||
for sticker in stickers {
|
for sticker in stickers {
|
||||||
if let file = telegramMediaFileFromApiDocument(sticker), let id = file.id {
|
if let file = telegramMediaFileFromApiDocument(sticker), let id = file.id {
|
||||||
|
|||||||
@ -148,7 +148,7 @@ public final class StickerPackItem: ItemCollectionItem, Equatable {
|
|||||||
extension StickerPackCollectionInfo {
|
extension StickerPackCollectionInfo {
|
||||||
convenience init(apiSet: Api.StickerSet, namespace: ItemCollectionId.Namespace) {
|
convenience init(apiSet: Api.StickerSet, namespace: ItemCollectionId.Namespace) {
|
||||||
switch apiSet {
|
switch apiSet {
|
||||||
case let .stickerSet(flags, id, accessHash, title, shortName, count, nHash):
|
case let .stickerSet(flags, _, id, accessHash, title, shortName, count, nHash):
|
||||||
var setFlags: StickerPackCollectionInfoFlags = StickerPackCollectionInfoFlags()
|
var setFlags: StickerPackCollectionInfoFlags = StickerPackCollectionInfoFlags()
|
||||||
if (flags & (1 << 2)) != 0 {
|
if (flags & (1 << 2)) != 0 {
|
||||||
setFlags.insert(.official)
|
setFlags.insert(.official)
|
||||||
|
|||||||
@ -291,7 +291,7 @@ func fetchAndUpdateCachedPeerData(peerId: PeerId, network: Network, postbox: Pos
|
|||||||
let stickerPack: StickerPackCollectionInfo? = stickerSet.flatMap { apiSet -> StickerPackCollectionInfo in
|
let stickerPack: StickerPackCollectionInfo? = stickerSet.flatMap { apiSet -> StickerPackCollectionInfo in
|
||||||
let namespace: ItemCollectionId.Namespace
|
let namespace: ItemCollectionId.Namespace
|
||||||
switch apiSet {
|
switch apiSet {
|
||||||
case let .stickerSet(flags, _, _, _, _, _, _):
|
case let .stickerSet(flags, _, _, _, _, _, _, _):
|
||||||
if (flags & (1 << 3)) != 0 {
|
if (flags & (1 << 3)) != 0 {
|
||||||
namespace = Namespaces.ItemCollection.CloudMaskPacks
|
namespace = Namespaces.ItemCollection.CloudMaskPacks
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user