melodyInstance := melody.New() creates a melody instance, which has a default config which has max message size is fixed to 512 bytes. That was increased to 1200. The text area, the user write their message has a max size 1000 and all the messages written there can be sent. That means limit is increased to 1000 for now. We decided to be 2000 chars at the meeting, the reason I let it stays as 1000 is that, different problems occur for messages longer than 1000 chars. I also wanted to add some warnings for longer messages and do some frontend changes because longer messages sometimes cause some visual problems. I want to open another issue for that and work on them here. This PR is just a short term solution for sending longer messages.
Steps for Testing
Prerequisites:
Admin or Lecturer rights
Log in
Create a new course with chat enabled and create a livestream to test the chat
type a message longer than 400 chars, if you reach 1000 chars, the text are will not allow you to write anymore.
Example 100 char random message:
Motivation and Context
fixes #1207
Description
melodyInstance := melody.New() creates a melody instance, which has a default config which has max message size is fixed to 512 bytes. That was increased to 1200. The text area, the user write their message has a max size 1000 and all the messages written there can be sent. That means limit is increased to 1000 for now. We decided to be 2000 chars at the meeting, the reason I let it stays as 1000 is that, different problems occur for messages longer than 1000 chars. I also wanted to add some warnings for longer messages and do some frontend changes because longer messages sometimes cause some visual problems. I want to open another issue for that and work on them here. This PR is just a short term solution for sending longer messages.
Steps for Testing
Prerequisites: Admin or Lecturer rights
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxfskjdfkjsdkcmsdkcmksdmcksdmcksdnvjbsdjvbsdjbvjsdbvjbsdjcvbnjsdkncksdaggckmsdkcmsdkmcksdxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxkkkkkkkkkkjjjjjjjjjjpppppppppp12345sdkj
Screenshots
The message above is sent and accepted by the channel:![long_text_msg](https://github.com/TUM-Dev/gocast/assets/70471039/93a11c97-3b6b-411d-b972-3bb1fae58bac)