Limit call link names to 32 characters

This commit is contained in:
ayumi-signal
2024-08-19 15:15:38 -07:00
committed by GitHub
parent 09bd95228d
commit 99f91b5f54
2 changed files with 3 additions and 0 deletions
+1
View File
@@ -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;