forked from Ivasoft/mattermost-mobile
[MM-49927] Calls: Fix recording message (#7012)
This commit is contained in:
committed by
GitHub
parent
1a5e4c2d66
commit
24bb5f9b25
@@ -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 = {
|
||||
|
||||
@@ -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[]) {
|
||||
|
||||
Reference in New Issue
Block a user