15 lines
461 B
TypeScript
15 lines
461 B
TypeScript
// Copyright 2021 Signal Messenger, LLC
|
|
// SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
import * as RemoteConfig from '../RemoteConfig';
|
|
import { parseIntWithFallback } from './parseIntWithFallback';
|
|
|
|
export function getMaxNickname(): number {
|
|
return parseIntWithFallback(
|
|
RemoteConfig.getValue('global.nicknames.max'),
|
|
32
|
|
);
|
|
}
|
|
export function getMinNickname(): number {
|
|
return parseIntWithFallback(RemoteConfig.getValue('global.nicknames.min'), 3);
|
|
}
|