@poolse/react-ui 3.6.0 → 3.6.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.
- package/CHANGELOG.md +8 -0
- package/dist/index.cjs +5 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +5 -3
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,14 @@ All notable changes to `@poolse/react-ui` are documented here. Format follows
|
|
|
4
4
|
[Keep a Changelog](https://keepachangelog.com/en/1.1.0/); versions follow
|
|
5
5
|
[semver](https://semver.org).
|
|
6
6
|
|
|
7
|
+
## [3.6.1] - 2026-11-21
|
|
8
|
+
|
|
9
|
+
### Fixed
|
|
10
|
+
|
|
11
|
+
- A direct chat in `ConversationList` and the sender of a quoted message
|
|
12
|
+
show the provider's resolved display name, not the external id, when no
|
|
13
|
+
`labelFor` is passed.
|
|
14
|
+
|
|
7
15
|
## [3.6.0] - 2026-11-21
|
|
8
16
|
|
|
9
17
|
### Added
|
package/dist/index.cjs
CHANGED
|
@@ -3601,7 +3601,8 @@ function QuotedCard({
|
|
|
3601
3601
|
labelFor,
|
|
3602
3602
|
onClick
|
|
3603
3603
|
}) {
|
|
3604
|
-
const
|
|
3604
|
+
const { profile: quotedSender } = react$1.useUser(quoted.sender_external_id ?? null);
|
|
3605
|
+
const senderLabel = quoted.sender_external_id ? labelFor?.(quoted.sender_external_id) ?? quotedSender?.displayName ?? quoted.sender_external_id : "Unknown";
|
|
3605
3606
|
const isDeleted = !!quoted.deleted_at;
|
|
3606
3607
|
const handleClick = onClick ? () => onClick(quoted.id) : void 0;
|
|
3607
3608
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
@@ -5797,8 +5798,9 @@ function DefaultRow({
|
|
|
5797
5798
|
}) {
|
|
5798
5799
|
const isDirect = conv.type === "direct";
|
|
5799
5800
|
const otherExtId = isDirect && meExternalId ? (conv.member_external_ids ?? []).find((x) => x !== meExternalId) : null;
|
|
5800
|
-
const
|
|
5801
|
-
const
|
|
5801
|
+
const { profile: other } = react$1.useUser(isDirect && otherExtId ? otherExtId : null);
|
|
5802
|
+
const title = isDirect ? otherExtId ? labelFor?.(otherExtId) ?? other?.displayName ?? otherExtId : conv.name ?? "Direct chat" : conv.name ?? "Untitled group";
|
|
5803
|
+
const avatarUrl = isDirect ? otherExtId ? avatarFor?.(otherExtId) ?? other?.avatarUrl ?? null : conv.avatar_url ?? null : conv.avatar_url ?? null;
|
|
5802
5804
|
const time = conv.last_message_at ? formatRelative(conv.last_message_at) : "";
|
|
5803
5805
|
const hasUnread = unread > 0;
|
|
5804
5806
|
const preview = react$1.formatCallLogPreview(conv.last_message_preview, meId) ?? conv.last_message_preview ?? (conv.last_sequence > 0 ? `${conv.last_sequence} message${conv.last_sequence === 1 ? "" : "s"}` : "No messages yet");
|