Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

474 B
Raw Blame
import { useEntitySubscription } from '@service-connection/client';
import type { Accessor } from 'solid-js';

/**
 * Tracks presence on a channel so live viewer indicators populate. Pure
 * tracking — message updates for open channels invalidate through
 * useMessageSubscription, not here.
 */
export function useChannelPresenceSubscription(channelId: Accessor<string>) {
  useEntitySubscription(() => ({
    entity_type: 'channel',
    entity_id: channelId(),
  }));
}