Skip to content

Commit 559fb82

Browse files
authored
Merge pull request #540 from GetStream/reaction-list-fix
Reaction list fix
2 parents 47b1bf4 + b51b9db commit 559fb82

File tree

3 files changed

+12
-11
lines changed

3 files changed

+12
-11
lines changed

package-lock.json

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@
117117
"@ngx-translate/core": "^13.0.0",
118118
"@ngx-translate/http-loader": "^6.0.0",
119119
"@popperjs/core": "^2.11.5",
120-
"@stream-io/stream-chat-css": "4.6.0",
120+
"@stream-io/stream-chat-css": "4.6.1",
121121
"@stream-io/transliterate": "^1.5.2",
122122
"angular-mentions": "^1.4.0",
123123
"dayjs": "^1.10.7",

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)