Fix missing group flags serialization

This commit is contained in:
Ilya Laktyushin 2023-02-09 18:09:34 +04:00
parent 0ebaaa3641
commit fb5f48afa8

View File

@ -146,6 +146,7 @@ public final class TelegramGroup: Peer, Equatable {
encoder.encodeInt32(Int32(self.participantCount), forKey: "pc")
encoder.encodeObject(self.role, forKey: "rv")
encoder.encodeInt32(self.membership.rawValue, forKey: "m")
encoder.encodeInt32(self.flags.rawValue, forKey: "f")
if let defaultBannedRights = self.defaultBannedRights {
encoder.encodeObject(defaultBannedRights, forKey: "dbr")
} else {