We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7fc3c3b commit b51b9dbCopy full SHA for b51b9db
projects/stream-chat-angular/src/lib/message-reactions/message-reactions.component.ts
@@ -229,10 +229,11 @@ export class MessageReactionsComponent
229
return item.id;
230
}
231
232
- react(type: MessageReactionType) {
+ async react(type: MessageReactionType) {
233
this.ownReactions.find((r) => r.type === type)
234
- ? void this.channelService.removeReaction(this.messageId!, type)
235
- : void this.channelService.addReaction(this.messageId!, type);
+ ? await this.channelService.removeReaction(this.messageId!, type)
+ : await this.channelService.addReaction(this.messageId!, type);
236
+ this.isSelectorOpenChange.emit(false);
237
238
239
isOwnReaction(reactionType: MessageReactionType) {
0 commit comments