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 6448fe47a1
commit 7feca6f270
7 changed files with 16 additions and 6 deletions
+3 -1
View File
@@ -255,7 +255,9 @@ export const DEFAULT_QUICK_REACTIONS = ['❤️', '👍', '👎', '😂', '‼
// back), worded the way iPhones send it, so iPhones and Google Messages show
// it as a reaction and everything else as "Loved “…”".
export function reactionText(emoji: string, msg: { body: string; media?: unknown[] }, removed = false): string {
const body = norm(msg.body)
// Their exact text (curly apostrophes, line breaks and all): the other
// phone finds the message by comparing the quote letter for letter.
const body = msg.body.trim()
const what = body
? `“${[...body].length > MAX_QUOTE ? [...body].slice(0, MAX_QUOTE).join('').trimEnd() + '…' : body}”`
: msg.media?.length