signalapp / signalapp/Signal-Android

Text longer than 2048 characters truncated when copied from collapsed message

Open
#9,511 9 comments 4 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

acknowledged
Dominant language
Kotlin
Stars
29.4k
Forks
6.9k
PR merge metrics
No merged PRs in 30d

Description


Bug description

On Signal Android when copying collapsed long message (>2048 characters) from message thread, text gets cut to first 2048 characters. It's consistent behavior and works that way every time. I suspect it's restriction from time when max Signal message length was 2000 characters that weren't removed.

When copying expanded long message in Read more view through Select all>Copy, all the message text is copied.

This can potentially occur on Signal iOS too but I can't confirm this since I haven't iPhone.

Steps to reproduce
  • Receive/send very long message (about 3000 characters).
  • Select collapsed message and copy .
  • Paste it somewhere.

Actual result:
Pasted text is only 2048 characters long. The rest of copied message is missing.

Expected result:
Entire message text is copied and pasted.

Device info

Device: LG G4
Android version: 6
Signal version: 4.58.1

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing this on Signal Android with a message of about 3000 characters: copy it while collapsed, then paste it elsewhere and compare the result with copying it from the expanded Read more view. No source file or test is named; done means the collapsed-message copy contains the entire message rather than stopping at 2048 characters.

Written by the indexing model from the issue text.

Assessment

Tech stack
kotlin
Domain
mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.