v0.7.2: bubble for Android 0.7.2 — reactions quote the message exactly, so the other phone can find it

This commit is contained in:
2026-11-11 04:50:28 -08:00
parent 5f68bb7267
commit 50ff68b6ee
7 changed files with 16 additions and 6 deletions
+7
View File
@@ -170,6 +170,13 @@ describe('reactionText', () => {
expect(reactionText('🎉', { body: 'hi' }, true)).toBe('Removed a 🎉 from “hi”')
})
it('quotes their text exactly, so their phone can find it', () => {
expect(reactionText('👍', { body: ' I’m home\nsee you ' })).toBe('Liked “I’m home\nsee you”')
const a = msg('I’m home\nsee you')
const r = msg(reactionText('👍', a), { out: true })
expect(foldReactions([a, r]).reactions.get(a.id)?.[0].emoji).toBe('👍')
})
it('round-trips through the parser, long messages cut short', () => {
const long = 'word '.repeat(60).trim()
for (const e of ['❤️', '👍', '👎', '😂', '‼️', '❓', '🎉', '👨‍👩‍👧']) {