Skip to content

Commit b51b9db

Browse files
committed
fix: close reaction selector after the user selected a reaction
1 parent 7fc3c3b commit b51b9db

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

projects/stream-chat-angular/src/lib/message-reactions/message-reactions.component.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -229,10 +229,11 @@ export class MessageReactionsComponent
229229
return item.id;
230230
}
231231

232-
react(type: MessageReactionType) {
232+
async react(type: MessageReactionType) {
233233
this.ownReactions.find((r) => r.type === type)
234-
? void this.channelService.removeReaction(this.messageId!, type)
235-
: void this.channelService.addReaction(this.messageId!, type);
234+
? await this.channelService.removeReaction(this.messageId!, type)
235+
: await this.channelService.addReaction(this.messageId!, type);
236+
this.isSelectorOpenChange.emit(false);
236237
}
237238

238239
isOwnReaction(reactionType: MessageReactionType) {

0 commit comments

Comments
 (0)