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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user