@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.cjs
CHANGED
|
@@ -749,11 +749,13 @@ function projectParticipants(value, operation) {
|
|
|
749
749
|
for (const entry of value) {
|
|
750
750
|
if (typeof entry !== "object" || entry === null) continue;
|
|
751
751
|
const record = entry;
|
|
752
|
-
const
|
|
752
|
+
const nested = typeof record["user"] === "object" && record["user"] !== null ? record["user"] : {};
|
|
753
|
+
const id = str(record, "user_id") ?? str(nested, "user_id") ?? str(record, "id");
|
|
753
754
|
if (id === null) continue;
|
|
754
755
|
summaries.push(
|
|
755
756
|
projectUserSummary({
|
|
756
757
|
...record,
|
|
758
|
+
...nested,
|
|
757
759
|
user_id: id
|
|
758
760
|
})
|
|
759
761
|
);
|