You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-08 21:42:24 +03:00
@@ -48,9 +48,7 @@ class EmojiPicker extends React.Component {
|
|||||||
};
|
};
|
||||||
|
|
||||||
// Convert recent emoji characters to emoji data, removing unknowns and duplicates
|
// Convert recent emoji characters to emoji data, removing unknowns and duplicates
|
||||||
this.recentlyUsed = Array.from(new Set(recent.get()
|
this.recentlyUsed = Array.from(new Set(recent.get().map(getEmojiFromUnicode).filter(Boolean)));
|
||||||
.map(unicode => getEmojiFromUnicode(unicode))
|
|
||||||
.filter(data => !!data)));
|
|
||||||
this.memoizedDataByCategory = {
|
this.memoizedDataByCategory = {
|
||||||
recent: this.recentlyUsed,
|
recent: this.recentlyUsed,
|
||||||
...DATA_BY_CATEGORY,
|
...DATA_BY_CATEGORY,
|
||||||
|
|||||||
Reference in New Issue
Block a user