diff options
| author | Adam Soltys <[email protected]> | 2026-10-26 11:02:21 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-10-26 11:02:21 -0700 |
| commit | c357e6855fd034c8ccd8dc190df28327e1be4d16 (patch) | |
| tree | 5ccedbdbc79fca2fb1eb5a12f24eea6a9d641b7f /src/features/messages.js | |
| parent | 93a6ee52555a7c9557d926c46f06c7949bd971a8 (diff) | |
| download | coinosv3-c357e6855fd034c8ccd8dc190df28327e1be4d16.tar.gz coinosv3-c357e6855fd034c8ccd8dc190df28327e1be4d16.zip | |
A clip's moments sit on its bar, just under the line (under the waveform for audio) instead of floating above it, and a reply made at a moment shows as its author's face, not ↩ (the pager's bar and the pop-up too)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01QjVvE4YAcK3AGwV7kZXeN4
Diffstat (limited to 'src/features/messages.js')
| -rw-r--r-- | src/features/messages.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/features/messages.js b/src/features/messages.js index 8481bcd..ca560c3 100644 --- a/src/features/messages.js +++ b/src/features/messages.js @@ -4543,8 +4543,10 @@ export function messagesFeature(ctx) { .sort((a, b) => a.moment.seconds - b.moment.seconds) .map(x => ({ ...x, text: displayName(x.ev.kind === 9735 || x.ev.kind === 9737 ? zapperOf(x.ev) || x.ev.pubkey : x.ev.pubkey) + ' · ' + String(x.text || x.icon).slice(0, 240) })); // how a moment shows on a bar: a reaction as its emoji (a :code: as its - // picture, from the reaction's own tag), a zap ⚡, a reply ↩ + // picture, from the reaction's own tag), a zap ⚡, a reply as its + // author's face function momentGlyph(x) { + if (x.ev.kind === 1 || x.ev.kind === 1111) return avatar(x.ev.pubkey, 'chat-avatar media-mark-face', false); if (x.ev.kind !== 7) return x.icon; const code = shortcodeOf(x.ev.content); const tag = code && x.ev.tags.find(t => t[0] === 'emoji' && t[1] === code && t[2]); |
