Handle maxGroupCallRingSize remote config flag
This commit is contained in:
parent
f5a3d4bc8a
commit
502dad8f6f
3 changed files with 28 additions and 0 deletions
|
@ -3,6 +3,7 @@
|
|||
|
||||
import { isNumber } from 'lodash';
|
||||
import { parseIntOrThrow } from '../util/parseIntOrThrow';
|
||||
import { parseIntWithFallback } from '../util/parseIntWithFallback';
|
||||
import { getValue, ConfigKeyType } from '../RemoteConfig';
|
||||
|
||||
function makeGetter(configKey: ConfigKeyType): (fallback?: number) => number {
|
||||
|
@ -24,6 +25,10 @@ function makeGetter(configKey: ConfigKeyType): (fallback?: number) => number {
|
|||
export const getGroupSizeRecommendedLimit = makeGetter(
|
||||
'global.groupsv2.maxGroupSize'
|
||||
);
|
||||
|
||||
export const getGroupSizeHardLimit = makeGetter(
|
||||
'global.groupsv2.groupSizeHardLimit'
|
||||
);
|
||||
|
||||
export const getMaxGroupCallRingSize = (): number =>
|
||||
parseIntWithFallback(getValue('global.calling.maxGroupCallRingSize'), 16);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue