Skip to content
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

prevent user from sending empty messages #135

Merged
merged 1 commit into from
Nov 14, 2024
Merged

Conversation

haansn08
Copy link
Contributor

@haansn08 haansn08 commented Nov 4, 2024

Currently, if hasSendingEnterKey is enabled, it is possible to mistakenly send an empty message or spam the room with empty messages simply by keeping Enter pressed. This PR prevents sending a message, when the input is empty.

@nioc nioc self-requested a review November 4, 2024 02:59
Copy link
Owner

@nioc nioc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello @haansn08.

Thanks for the PR.
Could you fix the lint errors before merging?

Error:   82:42  error  Expected '===' and instead saw '=='             eqeqeq
Error:   83:1   error  Expected indentation of 10 spaces but found 12  indent
Error:   84:1   error  Expected indentation of 10 spaces but found 12  indent

@nioc nioc added the enhancement New feature or request label Nov 4, 2024
Copy link
Owner

@nioc nioc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@nioc nioc merged commit c640219 into nioc:master Nov 14, 2024
1 check passed
@nioc
Copy link
Owner

nioc commented Nov 14, 2024

🚀 @haansn08 your code is released in 0.10.3.

@haansn08
Copy link
Contributor Author

Wow a whole release for this PR! 😳️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants