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

Only send message if its not null or not empty #74

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

pkesavap
Copy link

@pkesavap pkesavap commented Oct 3, 2020

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

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
Copy link
Collaborator

@Chaphasilor Chaphasilor left a 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

addMessageToScreen(msg, true);

}
// Add message to screen
Copy link
Collaborator

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 ;)

Copy link
Author

Choose a reason for hiding this comment

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

done :-)

Copy link
Collaborator

@Chaphasilor Chaphasilor left a 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:

// Add message to screen
addMessageToScreen(msg, true);

(the comment is above the function call)

proper positioning of doc
Copy link
Collaborator

@Chaphasilor Chaphasilor left a comment

Choose a reason for hiding this comment

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

Thanks a lot!

@Chaphasilor
Copy link
Collaborator

pinging @ianramzy for permissions to merge this fix

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

Successfully merging this pull request may close these issues.

None yet

3 participants