Skip to content

Commit

Permalink
Fixing MessageReaction#count always being 1 (#1857)
Browse files Browse the repository at this point in the history
  • Loading branch information
SpaceEEC authored and iCrawl committed Aug 30, 2017
1 parent b7c55f0 commit 4e028d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/stores/ReactionStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class ReactionStore extends DataStore {
create(data) {
const emojiID = data.emoji.id || decodeURIComponent(data.emoji.name);

const existing = this.get(data.id);
const existing = this.get(emojiID);
if (existing) return existing;

const reaction = new MessageReaction(this.message, data.emoji, data.count, data.me);
Expand Down

0 comments on commit 4e028d7

Please sign in to comment.