The first message after creating a channel can be sent empty
Version: Version: 4.0.3 System: all desktops, iOS, android
Usually, users can't send empty messages. There is one exception:
- Create a new channel.
- Enter space as the only element in the text area.
- Send a message.
- A message appears in the channel without any text or sign.
This will not happen in any other circumstance.
Hi @kingalg , as an extension of the issue you created, I’ve noticed that messages with leading spaces are not being trimmed or stripped before appearing in the chat. This allows users to extend messages unnecessarily by adding spaces, affecting chat formatting.
To resolve this, we can implement a trimming/stripping function to process messages before displaying them in the chat. If you assign this issue to me under PLDG Cohort-2, I’d be happy to work on fixing it.
This approach looks good to me. Go for it.
A fix that works on both desktop and mobile would be ideal.
How do we assign an issue under PLDG cohort 2?
@holmesworcester , you just assigned this issue to me — I will take care of the rest.