mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-05-08 08:58:38 +01:00
Limit call link names to 32 characters
This commit is contained in:
@@ -21,6 +21,7 @@ export type CallLinkUpdateData = Readonly<{
|
||||
*/
|
||||
|
||||
export const CallLinkNameMaxByteLength = 120;
|
||||
export const CallLinkNameMaxLength = 32;
|
||||
|
||||
export const callLinkNameSchema = z.string().refine(input => {
|
||||
return byteLength(input) <= 120;
|
||||
|
||||
Reference in New Issue
Block a user