-
Notifications
You must be signed in to change notification settings - Fork 500
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
Only send message if its not null or not empty #74
base: master
Are you sure you want to change the base?
Conversation
This PR is raised to address the empty messages being sent in zipcall . How to check the problem:- 1) Initiate a zipcall session 2) open chat 3) continuously press enter, you will be able to see multiple empty messages which is sent in the UI
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just move the comment (and did you run prettier?), then you're good :D
public/js/chat.js
Outdated
addMessageToScreen(msg, true); | ||
|
||
} | ||
// Add message to screen |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That comment belongs on a different line ;)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done :-)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Take a look at how it was before:
decentralized-video-chat/public/js/chat.js
Lines 769 to 770 in 4b92b8a
// Add message to screen | |
addMessageToScreen(msg, true); |
(the comment is above the function call)
proper positioning of doc
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot!
pinging @ianramzy for permissions to merge this fix |
This PR is raised to address the empty messages being sent in zipcall .
How to check the problem:-