stream-chat 9.18.0 → 9.18.1
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.
|
@@ -2754,16 +2754,16 @@ function formatMessage(message) {
|
|
|
2754
2754
|
if (!msg) return null;
|
|
2755
2755
|
return {
|
|
2756
2756
|
...msg,
|
|
2757
|
-
created_at:
|
|
2758
|
-
deleted_at:
|
|
2759
|
-
pinned_at:
|
|
2757
|
+
created_at: msg.created_at ? new Date(msg.created_at) : /* @__PURE__ */ new Date(),
|
|
2758
|
+
deleted_at: msg.deleted_at ? new Date(msg.deleted_at) : null,
|
|
2759
|
+
pinned_at: msg.pinned_at ? new Date(msg.pinned_at) : null,
|
|
2760
2760
|
reaction_groups: maybeGetReactionGroupsFallback(
|
|
2761
|
-
|
|
2762
|
-
|
|
2763
|
-
|
|
2761
|
+
msg.reaction_groups,
|
|
2762
|
+
msg.reaction_counts,
|
|
2763
|
+
msg.reaction_scores
|
|
2764
2764
|
),
|
|
2765
|
-
status:
|
|
2766
|
-
updated_at:
|
|
2765
|
+
status: msg.status || "received",
|
|
2766
|
+
updated_at: msg.updated_at ? new Date(msg.updated_at) : /* @__PURE__ */ new Date()
|
|
2767
2767
|
};
|
|
2768
2768
|
};
|
|
2769
2769
|
return {
|
|
@@ -16212,7 +16212,7 @@ var StreamChat = class _StreamChat {
|
|
|
16212
16212
|
if (this.userAgent) {
|
|
16213
16213
|
return this.userAgent;
|
|
16214
16214
|
}
|
|
16215
|
-
const version = "9.18.
|
|
16215
|
+
const version = "9.18.1";
|
|
16216
16216
|
const clientBundle = "browser-cjs";
|
|
16217
16217
|
let userAgentString = "";
|
|
16218
16218
|
if (this.sdkIdentifier) {
|