Skip to content

Release 1.0.13 and fix bug when push alert is an object #390

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

Merged
merged 2 commits into from
Jun 1, 2016

Conversation

drew-gross
Copy link
Contributor

No description provided.

@ghost
Copy link

ghost commented Jun 1, 2016

By analyzing the blame information on this pull request, we identified @JeremyPlease, @flovilmart and @durunvo to be potential reviewers.

@@ -145,7 +145,7 @@ let getPushName = (pushData) => {
payload = JSON.parse(payload);
} catch(e) { }
if(payload){
return payload.alert ? payload.alert : payload;
return payload.alert ? payload.alert.toString() : payload;
Copy link
Contributor

Choose a reason for hiding this comment

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

@drew-gross If payload.alert is an object then the push name will be "[object Object]". Can we do the following instead to handle objects and strings:

return payload.alert ? JSON.stringify(payload.alert) : payload;

@JeremyPlease
Copy link
Contributor

One comment/suggestion. Otherwise, looks good!

@drew-gross
Copy link
Contributor Author

Yeah thats definitely a better idea. Thanks!

@ghost
Copy link

ghost commented Jun 1, 2016

@drew-gross updated the pull request.

@drew-gross drew-gross merged commit 43fba32 into parse-community:master Jun 1, 2016
@drew-gross drew-gross deleted the release-1.0.13 branch June 1, 2016 18:00
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.

2 participants