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.

fix(calls): team share toggle) (#3494)

Will Hutchinson0e0735855a54
diff --git a/js/app/packages/block-call/component/CallRecording/CallRecordingBody.tsx b/js/app/packages/block-call/component/CallRecording/CallRecordingBody.tsx
index a82721eb58..a565ad6a79 100644
--- a/js/app/packages/block-call/component/CallRecording/CallRecordingBody.tsx
+++ b/js/app/packages/block-call/component/CallRecording/CallRecordingBody.tsx
@@ -1,6 +1,5 @@
import { useCallContextOptional } from '@channel/Call/CallContext';
import { CustomScrollbar } from '@core/component/CustomScrollbar';
-import { useCanEdit } from '@core/signal/permissions';
import ShareNetwork from '@phosphor/share-network.svg';
import {
useSetCallRecordShareWithTeamMutation,
@@ -30,15 +29,15 @@ import {
function CallRecordingShareWithTeam(props: { record: Accessor<CallRecord> }) {
const record = props.record;
- const canEdit = useCanEdit();
const callCtx = useCallContextOptional();
const toggleActiveShare = useToggleShareWithTeamMutation();
const setArchivedShare = useSetCallRecordShareWithTeamMutation();
const isShared = createMemo(() => record().shareWithTeam);
+ // Call blocks do not currently hydrate document edit permissions; rely on
+ // the call mutation endpoints to enforce access instead of disabling this.
const isDisabled = createMemo(
- () =>
- !canEdit() || toggleActiveShare.isPending || setArchivedShare.isPending
+ () => toggleActiveShare.isPending || setArchivedShare.isPending
);
const handleChange = async (checked: boolean) => {