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 types for channel.sendReaction #245

Merged
merged 2 commits into from
Feb 10, 2020
Merged

Conversation

jaapbakker88
Copy link
Contributor

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

@@ -113,6 +113,9 @@ export interface Reaction {
[propName: string]: any;
}

export interface ReactionRequest {
type: string;
Copy link
Member

Choose a reason for hiding this comment

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

reactions have more fields, @bogdan-d please help here :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is just for sending a reaction though. I was working on the typescript stuff and it was failing because we reused the Reaction response object for this.

Copy link
Contributor

Choose a reason for hiding this comment

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

@jaapbakker88 Which properties of Reaction were breaking? I can see message_id, user as required properties on Reaction type. They are used for request using server side token. So maybe we can make them optional!!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@vishalnarkhede updated to use only the type as a required property. It was indeed breaking on the rest.

Copy link
Contributor

@vishalnarkhede vishalnarkhede left a comment

Choose a reason for hiding this comment

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

Have one comment!!

@jaapbakker88
Copy link
Contributor Author

@vishalnarkhede updated this

@vishalnarkhede
Copy link
Contributor

Looks good now :)

@vishalnarkhede vishalnarkhede merged commit 08c802e into master Feb 10, 2020
@delete-merged-branch delete-merged-branch bot deleted the fix/send-reaction-types branch February 10, 2020 16:51
kevinnath1007 pushed a commit to kevinnath1007/stream-chat-js that referenced this pull request Aug 31, 2022
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.

3 participants