The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
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;