Skip to content
Snippets Groups Projects
Commit 98146281 authored by Harmon's avatar Harmon Committed by Eugen Rochko
Browse files

Remove duplicate frequently used emojis (#7064)

parent b08ab329
No related branches found
No related tags found
No related merge requests found
......@@ -38,7 +38,8 @@ const getFrequentlyUsedEmojis = createSelector([
.toArray();
if (emojis.length < DEFAULTS.length) {
emojis = emojis.concat(DEFAULTS.slice(0, DEFAULTS.length - emojis.length));
let uniqueDefaults = DEFAULTS.filter(emoji => !emojis.includes(emoji));
emojis = emojis.concat(uniqueDefaults.slice(0, DEFAULTS.length - emojis.length));
}
return emojis;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment