-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
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
SMS cut off at 2000 characters #5146
Comments
Evidence suggests this is also true for Signal messages, not just SMS. 😮 |
@liliakai true, I just tested this. Sending push messages from android is possible with > 2000 characters. The message gets fully trasmitted and shown at Signal-Desktop. But just the first 2000 characters are displayed on android (sending & receiving side) |
What is the reason for this 2000 characters limit? Can't be DOS protection, since attachments are way bigger anyway, no? I'm not sure how to proceed, but I would suggest to raise this limit to at least 20.000 for push messages, since we have desktop clients now as well, and it's an imaginable usecase to copy & paste longer texts I guess. Since we can't control other SMS apps, I guess incoming SMS should always be displayed at full length, no? |
@agrajaghh wasn't there an issue regarding (decryption) speed for larger messages when scrolling through convos?! |
What's the verdict on this? 20k character limit for displaying sms? Or 20k characters for outbound messages, display full text for inbound SMS as @agrajaghh suggested? 20k limit for everything seems reasonable, I don't think SMS is protocol over which I want to be receiving >20k character messages. |
From what I gather, there are some performance issues and crashes associated with rendering huge text views in Android. |
@liliakai , So you say it's android fault of rendering huge text and we can't solve it? If it's true, I think this issue should be closed. |
Other SMS apps, like Hangouts, are able to render more than 2000 characters On Sat, Feb 6, 2016, 12:38 Guri Getsadze notifications@github.com wrote:
|
Okay, so it's not Android's fault. One thing I(we) know is that in MessageRecorder class, there's variable else if (getBody().getBody().length() > MAX_DISPLAY_LENGTH) {
return new SpannableString(getBody().getBody().substring(0, MAX_DISPLAY_LENGTH));
} I'm strongly interested in reason of displaying max characters number as 2000. |
I'm not saying that it's impossible to display long text on Android. I'm saying that with Signal-Android's current front end architecture, naively removing the limit may cause some phones to crash sometimes. |
current front end architecture is really common,I think. |
If someone is interested in looking into this #3148 has more info on rendering large messages. |
The fix could be as simple as preventing the user from sending more characters than 2k. At least they'd know the message wouldn't go through correctly (this should be done on Signal-browser too) |
Is there any update? Messages are still getting cut off when either sending or receiving 2000+ characters. |
The problem/feature still persists and I would love to at least understand why this cutoff exists, even if nothing can be done about it. |
Possible fix suggested in #4230. |
Thanks for pointing me there. How is it a fix though? It is a request, right? |
I just wanted to link this issue here. Addressing your question:
|
I don't get why they set a limit. Can anyone explain the gist of PR @FeuRenard commented? Did Signal crash because of no limit of messages or something? |
Third line of the PR message:
|
So they say they have problem when receiving big images, files, etc for example. And Signal developers solved it with setting a limit of a message? Strange. |
I encourage you to read more of the linked issues than just the title before asking further questions. In all three cases something went wrong during processing the received image or vcard. The result is, that Signal attempts to display the plaintext of those files or some encrypted gibberish. Those texts were rather long. And then the crashes happened. This revealed that there are crashes when Signal attempts to display large messages. This potential crash is eliminated by #2294. |
I had different question. But now I realized that crashes probably are Android's fault at all, that's the reason there are crashes while displaying large messages, images, etc. |
@FeuRenard
I currently see no method to view the full contents as there is no way to send a message longer than 2,000 characters. You just can't input more than 2,000 characters into the text field. |
In #2294 (comment) it is argued, why the button was removed. I would still suggest that implementing #4230 would be an appropriate fix. Then the 2000 characters restriction for the input field could be removed, too. EDIT: I think further discussion should take place in the forum or on the mailing list. |
I'll move the conversation there. I just want to thank you for all your responses and for being so patient with me. |
Optional "Tap for more" like iOS via signalapp/Signal-iOS@80fbc09 |
GitHub Issue Cleanup: |
When sending an unsecured SMS greater than 2000 characters, it appear cut-off in my sent view. The receiver confirmed that the entire text has gone through successfully.
It seems like Signal cuts off displaying SMS messages at about 2000 character, even though it's possible to send longer ones.
The text was updated successfully, but these errors were encountered: