Skip to content

Commit

Permalink
fix(Reactions): make MessageRection#id again null for default emojis (#…
Browse files Browse the repository at this point in the history
…1940)

Which was causing issues when resolving their identifier and MessageRection#id was also stated as nullable Snowflake, which a unicode not is
  • Loading branch information
SpaceEEC authored and iCrawl committed Sep 14, 2017
1 parent b62c472 commit 25ece18
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/stores/ReactionStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ class ReactionStore extends DataStore {
}

create(data, cache) {
data.emoji.id = data.emoji.id || decodeURIComponent(data.emoji.name);
return super.create(data, cache, { id: data.emoji.id, extras: [this.message] });
return super.create(data, cache, { id: data.emoji.id || data.emoji.name, extras: [this.message] });
}

/**
Expand Down

0 comments on commit 25ece18

Please sign in to comment.