Member requests fixes

This commit is contained in:
Ilya Laktyushin
2021-10-23 00:54:21 +04:00
parent 549b669d4a
commit b3089e87be
3 changed files with 79 additions and 5 deletions

View File

@@ -209,4 +209,8 @@ public final class TelegramGroup: Peer, Equatable {
public func updateDefaultBannedRights(_ defaultBannedRights: TelegramChatBannedRights?, version: Int) -> TelegramGroup {
return TelegramGroup(id: self.id, title: self.title, photo: self.photo, participantCount: self.participantCount, role: self.role, membership: self.membership, flags: self.flags, defaultBannedRights: defaultBannedRights, migrationReference: self.migrationReference, creationDate: self.creationDate, version: version)
}
public func updateParticipantCount(_ participantCount: Int) -> TelegramGroup {
return TelegramGroup(id: self.id, title: self.title, photo: self.photo, participantCount: participantCount, role: self.role, membership: self.membership, flags: self.flags, defaultBannedRights: self.defaultBannedRights, migrationReference: self.migrationReference, creationDate: self.creationDate, version: version)
}
}