[MM-49927] Calls: Fix recording message (#7012)

This commit is contained in:
Christopher Poile
2023-01-24 12:50:06 -05:00
committed by GitHub
parent 1a5e4c2d66
commit 24bb5f9b25
2 changed files with 2 additions and 1 deletions

View File

@@ -34,6 +34,7 @@ export const PostTypes: Record<string, string> = {
SYSTEM_AUTO_RESPONDER: 'system_auto_responder',
CUSTOM_CALLS: 'custom_calls',
CUSTOM_CALLS_RECORDING: 'custom_calls_recording',
};
export const PostPriorityColors = {

View File

@@ -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[]) {