Skip to content

The open alternative to Salesforce, designed for AI.

321 B
Raw Blame
import { isDefined } from 'twenty-shared/utils';
import {
  MessageChannelType,
  type TimelineThreadChannel,
} from '~/generated/graphql';

export const isChatTimelineThreadChannel = (
  channel: Pick<TimelineThreadChannel, 'type'> | null | undefined,
) => isDefined(channel) && channel.type === MessageChannelType.APP;