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

Pass in SendMessageResponse to onMessageSent callback, instead of mos… #79

Merged
merged 1 commit into from
Sep 9, 2020

Conversation

kriztoph
Copy link
Contributor

@kriztoph kriztoph commented Sep 9, 2020

…tly empty Message object.

When a message is sent, there's a callback called onMessageSent; right now it passes in the Message object before it's sent, so if we do something like modify the message in a presend hook, we have no way to get the message response and check for something like an error type. This change passes in the Message object that is returned from the API.

Submit a pull request

CLA

  • I have signed the Stream CLA (required).
  • The code changes follow best practices
  • Code changes are tested (add some information if not applicable)

Description of the pull request

@imtoori
Copy link
Contributor

imtoori commented Sep 9, 2020

Hi @kriztoph

thanks a lot for the pr! It will be available in the next release of the SDK 👍

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

2 participants