Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.
TypeScript agentaiai-agentsall-in-onecrmcrm-systememaillinearmcpmessagingnotesnotionofficerustslackslack-alternativestartupstartup-toolstypescriptworkspace
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,
};
};
}