signalapp / signalapp/Signal-Android
Text longer than 2048 characters truncated when copied from collapsed message
Nobody has claimed this yet.
- Dominant language
- Kotlin
- Stars
- 29.4k
- Forks
- 6.9k
- PR merge metrics
- No merged PRs in 30d
Description
- I have searched open and closed issues for duplicates
- I am submitting a bug report for existing functionality that does not work as intended
- I have read https://github.com/signalapp/Signal-Android/wiki/Submitting-useful-bug-reports
- This isn't a feature request or a discussion topic
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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