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

[CON-97] feat: add reaction methods #26

Merged
merged 6 commits into from
Jan 2, 2024
Merged

Conversation

ttypic
Copy link
Collaborator

@ttypic ttypic commented Dec 18, 2023

No description provided.

@ttypic ttypic changed the title [CON-97] add reaction methods [CON-97] feat: add reaction methods Dec 18, 2023
@@ -292,8 +292,7 @@ conversation.reactions.add(reactionType)
Remove reaction

```ts
conversation.reactions.delete(reaction)
conversation.reactions.delete(reactionType)
conversation.reactions.delete(reactionId)
Copy link
Collaborator

Choose a reason for hiding this comment

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

So just to check my understanding, would this be the "room-level" reactions, whereas the message-level ones would be the example above?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes, that's right

src/ChatApi.ts Outdated
},
body: JSON.stringify({ type }),
});
if (!response.ok) throw new ErrorInfo(response.statusText, response.status, 4000);
Copy link
Collaborator

@AndyTWF AndyTWF Jan 2, 2024

Choose a reason for hiding this comment

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

Perhaps another branch to change this as aware this is in other places too, but if the response is an ErrorInfo type, all the information we need to create an ErrorInfo will be in the response :)

@ttypic ttypic merged commit d685187 into delete-message-sdk Jan 2, 2024
5 checks passed
@AndyTWF AndyTWF deleted the add-reaction branch July 10, 2024 14:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants