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:
@@ -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 ['❤️', '👍', '👎', '😂', '‼️', '❓', '🎉', '👨👩👧']) {
|
||||
|
||||
Reference in New Issue
Block a user