Respond to CR.
This commit is contained in:
parent
d9dbcb59de
commit
b996707f0b
@ -70,7 +70,11 @@ public class RemoteConfig: BaseFlags {
|
||||
}
|
||||
|
||||
@objc
|
||||
public static func groupsV2maxMemberCount(defaultValue: UInt) -> UInt {
|
||||
public static let groupsV2maxMemberCountDefault: UInt = 100
|
||||
|
||||
@objc
|
||||
public static var groupsV2maxMemberCount: UInt {
|
||||
let defaultValue = groupsV2maxMemberCountDefault
|
||||
guard let rawValue: AnyObject = value(.groupsV2memberCountMax) else {
|
||||
owsFailDebug("Missing value.")
|
||||
return defaultValue
|
||||
|
||||
@ -96,12 +96,11 @@ public class GroupManager: NSObject {
|
||||
public static let groupUpdateTimeoutDuration: TimeInterval = 30
|
||||
|
||||
public static var maxGroupMemberCount: UInt {
|
||||
let defaultValue: UInt = 100
|
||||
guard AppReadiness.isAppReady else {
|
||||
owsFailDebug("Storage is not yet ready.")
|
||||
return defaultValue
|
||||
return RemoteConfig.groupsV2maxMemberCountDefault
|
||||
}
|
||||
return RemoteConfig.groupsV2maxMemberCount(defaultValue: defaultValue)
|
||||
return RemoteConfig.groupsV2maxMemberCount
|
||||
}
|
||||
|
||||
public static let maxGroupNameLength: Int = 32
|
||||
|
||||
Loading…
Reference in New Issue
Block a user