starsgiftscount in channel

This commit is contained in:
Mikhail Filimonov 2025-01-16 12:15:09 +01:00
parent 6c1ff35c4c
commit 6e088bc053

View File

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