relay-companion 0.1.270 → 0.1.271
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/overlay/inbox.html +9 -1
- package/overlay/main.cjs +4 -1
- package/package.json +1 -1
package/overlay/inbox.html
CHANGED
|
@@ -5318,7 +5318,15 @@
|
|
|
5318
5318
|
if (inbound) return inbound;
|
|
5319
5319
|
const sent = (payload.sent || []).find((row) => String(row.relayId || row.id || "") === String(id || ""));
|
|
5320
5320
|
if (!sent) return null;
|
|
5321
|
-
|
|
5321
|
+
// A group send fans out to one relay per member. The reader opened ONE of
|
|
5322
|
+
// those copies, but the message was addressed to the room — name the group
|
|
5323
|
+
// (or its members, if the roster is gone), never the sibling that was opened.
|
|
5324
|
+
const siblings = sent.groupSendId
|
|
5325
|
+
? (payload.sent || []).filter((row) => row.groupSendId === sent.groupSendId)
|
|
5326
|
+
: [];
|
|
5327
|
+
const recipient = siblings.length > 1
|
|
5328
|
+
? sentGroupLabel(siblings)
|
|
5329
|
+
: sent.recipientGroupName || sentRecipient(sent);
|
|
5322
5330
|
return {
|
|
5323
5331
|
id: sent.relayId || sent.id,
|
|
5324
5332
|
title: sentSubject(sent),
|
package/overlay/main.cjs
CHANGED
|
@@ -1889,7 +1889,10 @@ function previewPayloadForSent(relayId) {
|
|
|
1889
1889
|
const item = (sentCache || []).find((row) => String(row.relayId || row.id || "") === id);
|
|
1890
1890
|
if (!item) return null;
|
|
1891
1891
|
const recipient = item.recipient || {};
|
|
1892
|
-
|
|
1892
|
+
// A group send fans out to one relay per member, so the recipient on this
|
|
1893
|
+
// row is whichever member's copy was opened. The message was addressed to
|
|
1894
|
+
// the ROOM: name the group whenever the send carried one.
|
|
1895
|
+
const to = item.recipientGroupName || recipient.name || recipient.email || "the recipient";
|
|
1893
1896
|
const hasAgentDocument = Boolean(String(item.forAgent || "").trim());
|
|
1894
1897
|
return {
|
|
1895
1898
|
relayId: id,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "relay-companion",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.271",
|
|
4
4
|
"description": "Companion CLI for Relay (sendrelays.com): pairs this machine with your Relay account so coding agents like Claude Code and Codex can send and receive Relay messages.",
|
|
5
5
|
"homepage": "https://sendrelays.com",
|
|
6
6
|
"repository": {
|