quiet icon indicating copy to clipboard operation
quiet copied to clipboard

The first message after creating a channel can be sent empty

Open kingalg opened this issue 9 months ago • 3 comments

Version: Version: 4.0.3 System: all desktops, iOS, android

Usually, users can't send empty messages. There is one exception:

  1. Create a new channel.
  2. Enter space as the only element in the text area.
  3. Send a message.
  4. A message appears in the channel without any text or sign.

This will not happen in any other circumstance.

Image

kingalg avatar Mar 26 '25 14:03 kingalg

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.

Image

Hamza20203064 avatar Apr 04 '25 17:04 Hamza20203064

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 avatar Apr 08 '25 14:04 holmesworcester

@holmesworcester , you just assigned this issue to me — I will take care of the rest.

Hamza20203064 avatar Apr 08 '25 15:04 Hamza20203064