diff --git a/app/constants/post.ts b/app/constants/post.ts index 4eee747e82..caefdbf365 100644 --- a/app/constants/post.ts +++ b/app/constants/post.ts @@ -34,6 +34,7 @@ export const PostTypes: Record = { SYSTEM_AUTO_RESPONDER: 'system_auto_responder', CUSTOM_CALLS: 'custom_calls', + CUSTOM_CALLS_RECORDING: 'custom_calls_recording', }; export const PostPriorityColors = { diff --git a/app/products/calls/utils.ts b/app/products/calls/utils.ts index 2f94eefd79..dbe808cc60 100644 --- a/app/products/calls/utils.ts +++ b/app/products/calls/utils.ts @@ -70,7 +70,7 @@ export function isSupportedServerCalls(serverVersion?: string) { } export function isCallsCustomMessage(post: PostModel | Post): boolean { - return Boolean(post.type && post.type?.startsWith(Post.POST_TYPES.CUSTOM_CALLS)); + return Boolean(post.type && post.type === Post.POST_TYPES.CUSTOM_CALLS); } export function idsAreEqual(a: string[], b: string[]) {