Closed j3k0 closed 9 years ago
You are completely correct, It will be fixed soon.
It has been fixed, I also added a character count to the bottom right of the text window. Set the limit to 256.
Okay good.
If I may ask, it would be even better to trim any message displayed on the chat console (also those coming from the server). The chat server doesn't have this 256
length limit, so if someone is using another client to chat with you, it can still break the starling chat client. right?
I didnt think of that but they are going through the same software so they should be restricted by the same limit.However, just as a fail safe in case chat can inputted through another means I will cap the message. My only worry is that a user will send a message and have the full extent not displayed.
The limit for incoming messages has been added.
Could it be a starling limitation (?).
Whatever the reason, and if there ain't better fix: a simple one could be to trim the texts to a given reasonable MAX_LENGTH (say 1024)... If trimmed, "..." (three dots) should be added.
When pasting a long text like:
Following exception occurs:
Another stacktrace one can get while writing a very very long text:
The one above is "worst" in the sense that the exception will occur at every frame making the app almost irresponsive. I believe both be solved using the same MAX_LENGTH protection.