-
Notifications
You must be signed in to change notification settings - Fork 43
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
Prolong maximum chat message length to 1000 characters #1135
Prolong maximum chat message length to 1000 characters #1135
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks reasonable, just a quick remark found by eslint:
BTW, there also is server side validation: https://github.com/joschahenningsen/TUM-Live/blob/dev/model/chat.go#L40 |
Alright, thanks – I was already wondering, but the server accepted messages with ~220 characters and did not find any other occurence of "200" related to chat messages, so I assumed there was no server-side check. |
I can't think of any reason why we would have done this on purpose. I assume it was just an oversight. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
In #1135 the textarea tag hasn't been closed. As a result the chat UI doesn't work properly. Furthermore, it broke the polls. This is fixed by closing the tag.
* Prolong maximum chat message length to 1000 characters * Fix ESLint and server-side check
In #1135 the textarea tag hasn't been closed. As a result the chat UI doesn't work properly. Furthermore, it broke the polls. This is fixed by closing the tag.
Motivation and Context
We want longer chat messages! I can't answer to the questions of our students if I'm not able to write a long prose with at least 800 characters! :-P
Resolves #778.
Description
I replaced the chat input box with a multiline text area and extended the maximum message length from 200 to 1000 characters.
Steps for Testing