no message

This commit is contained in:
Peter Iakovlev 2018-01-24 01:04:37 +04:00
parent df33221c66
commit 707558f331
5 changed files with 5 additions and 5 deletions

View File

@ -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 {

View File

@ -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 {

View File

@ -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 {

View File

@ -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)

View File

@ -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 {