From 24bb5f9b25c353af6d1ede0d01f98ceafff7197e Mon Sep 17 00:00:00 2001 From: Christopher Poile Date: Tue, 24 Jan 2023 12:50:06 -0500 Subject: [PATCH] [MM-49927] Calls: Fix recording message (#7012) --- app/constants/post.ts | 1 + app/products/calls/utils.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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[]) {