Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Read More" on Android consistently only truncates only 2 characters #14017

Open
3 tasks done
marverati opened this issue Feb 25, 2025 · 0 comments
Open
3 tasks done

"Read More" on Android consistently only truncates only 2 characters #14017

marverati opened this issue Feb 25, 2025 · 0 comments

Comments

@marverati
Copy link

Guidelines

  • I have searched searched open and closed issues for duplicates
  • I am submitting a bug report for existing functionality that does not work as intended
  • This isn't a feature request or a discussion topic

Bug description

The "Read More" functionality for relatively long messages (1000-2046 characters in length) in the Android client is incorrect and always truncates the last 2 characters of long messages, which makes it quite useless. It appears to trigger for texts containing >1000 characters. Starting at 2046 character message length, the truncation is performed differently and always shows the first 2046 characters only, at which point this feature makes sense again.
This means when I for instance paste a text with 1500 characters, then Signal Android will show the first 1498 characters of the message followed by "... Read More".
This means that a) long messages (of 1000-2046 characters in length) are not actually significantly shortened, and b) that the feature just makes long messages harder to read because you need to interact with the message to reveal the last 2 characters.

For comparison, on Desktop (Linux) the feature seems to work like this: for any message exceeding 900 characters, the first 800 (!) characters + "... Read More" are displayed. This makes sense! The Android behavior on the other hand does not.

Reproduction:

  1. Open Signal Android
  2. Open any conversation
  3. Write a text to someone that is >1000 and <2046 characters long (e.g. the one attached below)
  4. Send the text

Expected: You see e.g. the first 1000 or 900 characters, and the rest is hidden behind "... Read More", meaning if you click "Read More", at least several words of text appear.
Actual: You see n-2 characters followed by "... Read more", and if you click it, you see only two additional characters.

Example text, this one is 1499 characters long:

Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis, ultricies nec, pellentesque eu, pretium quis, sem. Nulla consequat massa quis enim.
Donec pede justo, fringilla vel, aliquet nec, vulputate eget, arcu. In enim justo, rhoncus ut, imperdiet a, venenatis vitae, justo. Nullam dictum felis eu pede mollis pretium. Integer tincidunt. Cras dapibus. Vivamus elementum semper nisi. Aenean vulputate eleifend tellus.
Aenean leo ligula, porttitor eu, consequat vitae, eleifend ac, enim. Aliquam lorem ante, dapibus in, viverra quis, feugiat a, tellus. Phasellus viverra nulla ut metus varius laoreet. Quisque rutrum. Aenean imperdiet. Etiam ultricies nisi vel augue. Curabitur ullamcorper ultricies nisi. Nam eget dui. Etiam rhoncus.
Maecenas tempus, tellus eget condimentum rhoncus, sem quam semper libero, sit amet adipiscing sem neque sed ipsum. Nam quam nunc, blandit vel, luctus pulvinar, hendrerit id, lorem. Maecenas nec odio et ante tincidunt tempus. Donec vitae sapien ut libero venenatis faucibus. Nullam quis ante. Etiam sit amet orci eget eros faucibus tincidunt. Duis leo. Sed fringilla mauris sit amet nibh. Donec sodales sagittis magna. Sed consequat, leo eget bibendum sodales, augue velit cursus nunc, quis gravida magna mi a libero. Fusce vulputate eleifend sapien. Vestibulum purus quam, scelerisque ut, mollis sed, nonummy id.

Screenshots

No response

Device

OnePlus Nord CE 2

Android version

13

Signal version

7.34.2

Link to debug log

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant