Skip to content

Commit 378c77c

Browse files
committed
feat(plan-59 Phase 5a): aggregateCmc also populates accessObjects
So existing initStreamCache + eventIsAccessible work on CMC-built Contacts without extra glue in consumer code.
1 parent 5f8fa71 commit 378c77c

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

ts/appTemplates/Contact.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -591,6 +591,9 @@ export class Contact {
591591
acceptedAt: matchingAccept?.acceptedAt ?? null
592592
};
593593
contact.cmcRelationships.push(rel);
594+
// Also populate the legacy accessObjects slot so existing event-filtering
595+
// helpers (initStreamCache + eventIsAccessible) work without further glue.
596+
contact.addAccessObject(access);
594597
}
595598

596599
return Array.from(byCounterparty.values());

0 commit comments

Comments
 (0)