Conference calls

This commit is contained in:
Isaac
2025-04-08 15:58:03 +04:00
parent 5af756488a
commit cb83bc1b67
14 changed files with 229 additions and 69 deletions

View File

@@ -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)
}
}