uapp-communication-sdk 1.0.0-dev.66 → 1.0.0-dev.68
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/communication-sdk.cjs +1 -1
- package/communication-sdk.js +2 -3
- package/communication-sdk.standalone.js +1 -1
- package/package.json +1 -1
- package/types/features/chat/presentation/ConversationHeader.d.ts.map +1 -1
- package/types/features/chat/presentation/dm-presence.d.ts +1 -2
- package/types/features/chat/presentation/dm-presence.d.ts.map +1 -1
package/communication-sdk.js
CHANGED
|
@@ -24192,7 +24192,7 @@ var dL = G({
|
|
|
24192
24192
|
if (Number.isNaN(n)) return null;
|
|
24193
24193
|
let r = Math.max(0, t - n);
|
|
24194
24194
|
return r < VB ? "Last seen just now" : r < HB ? `Last seen ${String(Math.floor(r / VB))}m ago` : r < UB ? `Last seen ${String(Math.floor(r / HB))}h ago` : `Last seen ${String(Math.floor(r / UB))}d ago`;
|
|
24195
|
-
}, GB = ({ conversation: e, live: t, liveStatus: n,
|
|
24195
|
+
}, GB = ({ conversation: e, live: t, liveStatus: n, nowMs: r }) => {
|
|
24196
24196
|
if (t?.online ?? e.online) {
|
|
24197
24197
|
let t = n?.status ?? e.status;
|
|
24198
24198
|
return {
|
|
@@ -24203,7 +24203,7 @@ var dL = G({
|
|
|
24203
24203
|
}
|
|
24204
24204
|
return {
|
|
24205
24205
|
online: !1,
|
|
24206
|
-
subtitle: (t === void 0 ? null : WB(t.lastSeenUtc,
|
|
24206
|
+
subtitle: (t === void 0 ? null : WB(t.lastSeenUtc, r)) ?? "Offline",
|
|
24207
24207
|
status: null
|
|
24208
24208
|
};
|
|
24209
24209
|
}, KB = "This message was deleted", qB = (e) => {
|
|
@@ -24554,7 +24554,6 @@ var dL = G({
|
|
|
24554
24554
|
conversation: e,
|
|
24555
24555
|
live: BP((e) => m === null ? void 0 : e.presence[m]),
|
|
24556
24556
|
liveStatus: YR(m),
|
|
24557
|
-
fallbackSubtitle: f?.subtitle ?? e.subtitle,
|
|
24558
24557
|
nowMs: Date.now()
|
|
24559
24558
|
}), g = e.isGroup ? _V(e, f) : h.subtitle, _ = s !== null;
|
|
24560
24559
|
return /* @__PURE__ */ (0, A.jsxs)("header", {
|