From 25ece1882b5a064013fad242fb2c84ac09252c70 Mon Sep 17 00:00:00 2001 From: SpaceEEC Date: Thu, 14 Sep 2017 12:36:08 +0200 Subject: [PATCH] fix(Reactions): make MessageRection#id again null for default emojis (#1940) Which was causing issues when resolving their identifier and MessageRection#id was also stated as nullable Snowflake, which a unicode not is --- src/stores/ReactionStore.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/stores/ReactionStore.js b/src/stores/ReactionStore.js index dad6708e0..bcbca72ac 100644 --- a/src/stores/ReactionStore.js +++ b/src/stores/ReactionStore.js @@ -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] }); } /**