remove direction from messages (#20026)

This was a leftover column removed in
https://github.com/twentyhq/twenty/pull/6743 but was accidentally added
again when we migrated to `buildMessageStandardFlatFieldMetadatas` from
workspace decorator

/closes #20011
This commit is contained in:
neo773
2026-05-05 18:54:25 +05:30
committed by GitHub
parent e50adaff2d
commit d040756fcf
6 changed files with 1065 additions and 1038 deletions
@@ -212,40 +212,6 @@ export const buildMessageStandardFlatFieldMetadatas = ({
twentyStandardApplicationId,
now,
}),
direction: createStandardFieldFlatMetadata({
objectName,
workspaceId,
context: {
fieldName: 'direction',
type: FieldMetadataType.SELECT,
label: i18nLabel(msg`Direction`),
description: i18nLabel(msg`Message Direction`),
icon: 'IconDirection',
isNullable: false,
isUIReadOnly: true,
defaultValue: "'INCOMING'",
options: [
{
id: '20202020-7b52-47d2-abd8-e96a4295f9a6',
value: 'INCOMING',
label: i18nLabel(msg`Incoming`),
position: 0,
color: 'green',
},
{
id: '20202020-11cb-42be-8df7-709ad53f90f9',
value: 'OUTGOING',
label: i18nLabel(msg`Outgoing`),
position: 1,
color: 'blue',
},
],
},
standardObjectMetadataRelatedEntityIds,
dependencyFlatEntityMaps,
twentyStandardApplicationId,
now,
}),
subject: createStandardFieldFlatMetadata({
objectName,
workspaceId,