Empty Chat Message sending
See original GitHub issueIssue Description
When the prop alwaysShowSend={true}
Without any text message, if click Send , it will send an empty message.
This is not appropriate. Empty messages should not be sent.

Steps to Reproduce / Code Snippets
Set the prop alwaysShowSend={true}
and click Send button from UI.
It will send empty message.
Expected Results
Empty message should be be sent.
Additional Information
- Nodejs version: 10.6.2
- React version: 16.5.2
- React Native version: 0.56.0
- react-native-gifted-chat version: 0.7.3
- Platform(s) (iOS, Android, or both?): checked on iOs only.
Issue Analytics
- State:
- Created 4 years ago
- Comments:9
Top Results From Across the Web
Empty Chat - Send Blank Text - Apps on Google Play
Send Empty text messages to your friends and family members through almost all messenger apps including default sms app. Empty Chat is very...
Read more >How to Send Blank Messages on WhatsApp, Facebook ...
Open the chat where you want to send this empty message. Click on the message box. Then long-press on it and click Paste...
Read more >How To Send A Blank Message - TechniqueHow
Your Quick Answer: · Step 1: First of all, open your WhatsApp Messenger >> Chat and tap on the chat with whom you...
Read more >How to send Empty / blank messages on Whatsapp Facebook ...
Send a Blank Text Messages on WhatsApp, Instagram & Facebook Messenger · Go to the Google Play store. · Search for Empty Messages...
Read more >How To Send Blank Messages on WhatsApp | ITGeared
Method #1: Send a Blank Space · Open WhatsApp from your phone or the WhatsApp web on a browser. · Open the message...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I’m on the opposite situation: I’d like
onSend
to be triggered even if the text input is empty (to send an attached image), I setalwaysShowSend
prop to true and literally always show the send button, not trigger it. If someone has a simple way to do it I’d be glad to know itSince messages may be extended with custom fields, e.g. image messages, the definition of “empty” would also need to be customizable. Perhaps an additional prop could be added that accepts a function which defines how to filter messages.
However, this can already be accomplished by implementing
onSend
.