const MANAGED_CHAT_SHARE_SESSION_PREFIX = 'chat-share-room-';

export function isManagedChatShareSessionId(sessionId: string | null | undefined) {
  return String(sessionId ?? '').trim().startsWith(MANAGED_CHAT_SHARE_SESSION_PREFIX);
}

export function resolveChatPathForSession(_sessionId: string) {
  return '/chat/live';
}

export function shouldShowPrimaryConversation(sessionId: string) {
  return !isManagedChatShareSessionId(sessionId);
}
