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

Fix issue with Message Results not being sent to sync URL #480

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

Conversation

MajorChump
Copy link

Fixes #463

This PR makes the following changes:

@eyedol
Copy link
Collaborator

eyedol commented Nov 6, 2017

@MatthewKingDev mind adding test for this so it doesn't regress in the future? Thanks for the PR

Message message = mMessageDataSource.fetchPendingByUuid(uuid);
if (message != null) {
Message message = mMessageDataSource.fetchByUuid(uuid);
if (message != null && !message.getStatus().equals(Message.Status.UNCONFIRMED)) {

Choose a reason for hiding this comment

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

You can avoid this null check if you flip equals like this: Message.Status.UNCONFIRMED.equals(message.getStatus())

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.

Message Results API always returns an empty message_result array
3 participants