Message Length Limits Are Not Enforced
On Android 4.4.4, TextSecure version 2.21.0 (Sony Xperia Tablet Compact Z3) I found that pasting an extremely long draft message (I was inspired by #3388) into the new message box will bring up the max message length indicator without actually enforcing it. Hence we can get negative characters remaining as shown below.
I was still able to send this message without issue to a Signal app; interestingly it causes Signal to crash while trying to load the message.
I'm assuming that the desired behavior is to actually enforce message length restrictions, so I will look into this.
Steps to Reproduce:
- Write a really long draft message until you get past 2000 characters.
- Profit.

Have a look at https://github.com/WhisperSystems/TextSecure/issues/3362
I noticed this as well when playing with a fix for #3388. 2000 chars seems to be like the speed of light, you can approach it, and can exceed it, you just can't ever match it.
closing in favor of #5146