The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
fix(server): default timeline thread visibility to METADATA (#21669)
neo773e50ec75cd03b
diff --git a/packages/twenty-server/src/engine/core-modules/messaging/utils/format-threads.util.ts b/packages/twenty-server/src/engine/core-modules/messaging/utils/format-threads.util.tsindex c6cf0aedc6b..f75d7d71df9 100644--- a/packages/twenty-server/src/engine/core-modules/messaging/utils/format-threads.util.ts+++ b/packages/twenty-server/src/engine/core-modules/messaging/utils/format-threads.util.ts@@ -25,7 +25,9 @@ export const formatThreads = (return threads.filter((thread) => isDefined(threadParticipantsByThreadId[thread.id])).map((thread) => {- const visibility = threadVisibilityByThreadId[thread.id];+ const visibility =+ threadVisibilityByThreadId[thread.id] ??+ MessageChannelVisibility.METADATA;return {...thread,