Files
twenty/packages/twenty-shared
Félix Malfait 042a982e0e fix(messaging): raise campaign recipient cap to 1000 and share constant
The SendCampaignCommand was using MAX_EMAIL_RECIPIENTS (=100), the cap
designed for the user-mailbox compose flow. Campaigns send one message
per recipient on a background worker and the server-side DTO already
caps at 1000 — the frontend was just clipping the fetched person IDs
earlier and silently truncating large selections (e.g. 1200 People
selected → drawer showed 'Sending to 100').

- Extract MAX_CAMPAIGN_RECIPIENTS (= 1000) to twenty-shared/constants so
  client and server validate against the same number.
- SendCampaignCommand fetches up to MAX_CAMPAIGN_RECIPIENTS person IDs.
- Compose drawer shows a red warning when the cap is hit, telling the
  user that additional selections will be skipped.
2026-05-28 15:18:23 +02:00
..