@ai-matrx/messaging 0.7.0 → 0.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/react.js CHANGED
@@ -658,11 +658,13 @@ function projectParticipants(value, operation) {
658
658
  for (const entry of value) {
659
659
  if (typeof entry !== "object" || entry === null) continue;
660
660
  const record = entry;
661
- const id = str(record, "user_id") ?? str(record, "id");
661
+ const nested = typeof record["user"] === "object" && record["user"] !== null ? record["user"] : {};
662
+ const id = str(record, "user_id") ?? str(nested, "user_id") ?? str(record, "id");
662
663
  if (id === null) continue;
663
664
  summaries.push(
664
665
  projectUserSummary({
665
666
  ...record,
667
+ ...nested,
666
668
  user_id: id
667
669
  })
668
670
  );