mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-04 21:41:45 +00:00
starsgiftscount in channel
This commit is contained in:
parent
6c1ff35c4c
commit
6e088bc053
@ -691,6 +691,8 @@ public final class CachedChannelData: CachedPeerData {
|
||||
self.emojiPack = nil
|
||||
}
|
||||
|
||||
self.starGiftsCount = decoder.decodeOptionalInt32ForKey("starGiftsCount")
|
||||
|
||||
self.verification = decoder.decodeCodable(PeerVerification.self, forKey: "vf")
|
||||
|
||||
self.peerIds = peerIds
|
||||
@ -881,6 +883,12 @@ public final class CachedChannelData: CachedPeerData {
|
||||
} else {
|
||||
encoder.encodeNil(forKey: "vf")
|
||||
}
|
||||
|
||||
if let starGiftsCount = self.starGiftsCount {
|
||||
encoder.encodeInt32(starGiftsCount, forKey: "starGiftsCount")
|
||||
} else {
|
||||
encoder.encodeNil(forKey: "starGiftsCount")
|
||||
}
|
||||
}
|
||||
|
||||
public func isEqual(to: CachedPeerData) -> Bool {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user