@astrosheep/square 0.3.15 → 0.3.17
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/dist/presentation.js
CHANGED
|
@@ -178,7 +178,10 @@ export function renderEventCli(event, opts = {}) {
|
|
|
178
178
|
function renderPresenceOnlySay(event, opts = {}) {
|
|
179
179
|
const audience = audienceOf(event);
|
|
180
180
|
const targets = audience.kind === 'bell' ? [] : audience.names;
|
|
181
|
-
|
|
181
|
+
if (targets.length === 0) {
|
|
182
|
+
return `● ${participantIdentity(event.actor)} #${opts.actNumber ?? 1} · ${actId(event)} · ${formatRelativeTime(event.at, opts.now)}\n spoke`;
|
|
183
|
+
}
|
|
184
|
+
const dest = ` ${targets.map((name) => participantIdentity(name)).join(' and ')}`;
|
|
182
185
|
return `● ${participantIdentity(event.actor)} #${opts.actNumber ?? 1} · ${actId(event)} · ${formatRelativeTime(event.at, opts.now)}\n talked to${dest}`;
|
|
183
186
|
}
|
|
184
187
|
export function renderAmbientEvent(event, viewer, opts = {}) {
|
package/package.json
CHANGED