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.

369 B
Raw Blame
import { useDmActivityByUserId } from '@core/context/channels';
import type { IUser } from './types';

export function useAugmentUserWithDmActivity() {
  const getDmActivity = useDmActivityByUserId();

  return (user: IUser): IUser => {
    const dmTimestamp = getDmActivity().get(user.id);
    return {
      ...user,
      lastInteraction: dmTimestamp,
    };
  };
}