feat: message folders control (#14144)

Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
This commit is contained in:
neo773
2025-08-30 21:09:10 +05:30
committed by GitHub
parent a0884cede9
commit 8ab71fef1f
49 changed files with 1786 additions and 301 deletions
@@ -47,6 +47,15 @@ export const triggerAttachRelationOptimisticEffect = ({
}
if (fieldValueIsObjectRecordConnectionWithRefs) {
const recordAlreadyExists = targetRecordFieldValue.edges.some(
(edge: RecordGqlRefEdge) =>
edge.node.__ref === sourceRecordReference.__ref,
);
if (recordAlreadyExists) {
return targetRecordFieldValue;
}
const nextEdges: RecordGqlRefEdge[] = [
...targetRecordFieldValue.edges,
{