-
Notifications
You must be signed in to change notification settings - Fork 2
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
Conversation
@@ -292,8 +292,7 @@ conversation.reactions.add(reactionType) | |||
Remove reaction | |||
|
|||
```ts | |||
conversation.reactions.delete(reaction) | |||
conversation.reactions.delete(reactionType) | |||
conversation.reactions.delete(reactionId) |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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); |
There was a problem hiding this comment.
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 :)
No description provided.