mirror of
https://git.bsd.gay/fef/nyastodon.git
synced 2024-12-24 19:23:41 +01:00
Remove duplicate frequently used emojis (#7064)
This commit is contained in:
parent
b08ab329f4
commit
98146281e1
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue