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.

chore(email): Enable email sharing (#1069)

dev-rbc49c9d3f3ca3
diff --git a/js/app/packages/core/component/TopBar/ShareButton.tsx b/js/app/packages/core/component/TopBar/ShareButton.tsx
index 36c7d95ad4..11788cf89f 100644
--- a/js/app/packages/core/component/TopBar/ShareButton.tsx
+++ b/js/app/packages/core/component/TopBar/ShareButton.tsx
@@ -580,7 +580,12 @@ export function ShareModal(props: ShareModalProps) {
</div>
</Show>
- <Show when={props.userPermissions === Permissions.OWNER}>
+ <Show
+ when={
+ props.userPermissions === Permissions.OWNER &&
+ props.itemType !== 'email'
+ }
+ >
<div class="border-t-1 border-edge-muted flex flex-col">
<div
class="border-b border-edge-muted/50 bg-panel w-full h-[40px] flex items-center"
diff --git a/js/app/packages/core/constant/featureFlags.ts b/js/app/packages/core/constant/featureFlags.ts
index 15889ec2ad..aa2476c51d 100644
--- a/js/app/packages/core/constant/featureFlags.ts
+++ b/js/app/packages/core/constant/featureFlags.ts
@@ -136,6 +136,6 @@ export const ENABLE_CUSTOM_CURSOR_TEXT_GLYPH_DETECTION = true;
export const ENABLE_CREATE_TASK = true;
export const ENABLE_TASKS_TABS = true;
-export const ENABLE_EMAIL_SHARING = false;
+export const ENABLE_EMAIL_SHARING = true;
export const ENABLE_FRECENCY = false;