@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/CHANGELOG.md +21 -0
- package/dist/index.cjs +3 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/dist/react.cjs +3 -1
- package/dist/react.cjs.map +1 -1
- package/dist/react.js +3 -1
- package/dist/react.js.map +1 -1
- package/package.json +1 -1
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
|
|
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
|
);
|