Skip to content

Prevent Users Sending Empty Messages #10

@vkoves

Description

@vkoves

Users can currently send empty message by pressing Enter in the chat field or pressing the Send Message. To that user, this looks like:

screenshot from 2017-12-24 19-13-08

To other users, this looks like:

screenshot from 2017-12-24 19-13-14

This can be simply avoided by preventing submission if the value of the field run through trim() has a length of zero, since that indicates the entire message is whitespace or the message is blank.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions