mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 14:20:20 +00:00
Conference calls
This commit is contained in:
@@ -28,6 +28,7 @@ public struct UserLimitsConfiguration: Equatable {
|
||||
public var maxGiveawayCountriesCount: Int32
|
||||
public var maxGiveawayPeriodSeconds: Int32
|
||||
public var maxChannelRecommendationsCount: Int32
|
||||
public var maxConferenceParticipantCount: Int32
|
||||
|
||||
public static var defaultValue: UserLimitsConfiguration {
|
||||
return UserLimitsConfiguration(
|
||||
@@ -56,7 +57,8 @@ public struct UserLimitsConfiguration: Equatable {
|
||||
maxGiveawayChannelsCount: 10,
|
||||
maxGiveawayCountriesCount: 10,
|
||||
maxGiveawayPeriodSeconds: 86400 * 31,
|
||||
maxChannelRecommendationsCount: 10
|
||||
maxChannelRecommendationsCount: 10,
|
||||
maxConferenceParticipantCount: 100
|
||||
)
|
||||
}
|
||||
|
||||
@@ -86,7 +88,8 @@ public struct UserLimitsConfiguration: Equatable {
|
||||
maxGiveawayChannelsCount: Int32,
|
||||
maxGiveawayCountriesCount: Int32,
|
||||
maxGiveawayPeriodSeconds: Int32,
|
||||
maxChannelRecommendationsCount: Int32
|
||||
maxChannelRecommendationsCount: Int32,
|
||||
maxConferenceParticipantCount: Int32
|
||||
) {
|
||||
self.maxPinnedChatCount = maxPinnedChatCount
|
||||
self.maxPinnedSavedChatCount = maxPinnedSavedChatCount
|
||||
@@ -114,6 +117,7 @@ public struct UserLimitsConfiguration: Equatable {
|
||||
self.maxGiveawayCountriesCount = maxGiveawayCountriesCount
|
||||
self.maxGiveawayPeriodSeconds = maxGiveawayPeriodSeconds
|
||||
self.maxChannelRecommendationsCount = maxChannelRecommendationsCount
|
||||
self.maxConferenceParticipantCount = maxConferenceParticipantCount
|
||||
}
|
||||
}
|
||||
|
||||
@@ -167,5 +171,6 @@ extension UserLimitsConfiguration {
|
||||
self.maxGiveawayCountriesCount = getGeneralValue("giveaway_countries_max", orElse: defaultValue.maxGiveawayCountriesCount)
|
||||
self.maxGiveawayPeriodSeconds = getGeneralValue("giveaway_period_max", orElse: defaultValue.maxGiveawayPeriodSeconds)
|
||||
self.maxChannelRecommendationsCount = getValue("recommended_channels_limit", orElse: defaultValue.maxChannelRecommendationsCount)
|
||||
self.maxConferenceParticipantCount = getGeneralValue("conference_call_size_limit", orElse: defaultValue.maxConferenceParticipantCount)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user