release
parent
153f02b18f
commit
b24b0ccee5
|
@ -101,18 +101,20 @@ export default class Category extends React.Component {
|
||||||
let frequentlyUsed = recent || frequently.get(perLine)
|
let frequentlyUsed = recent || frequently.get(perLine)
|
||||||
|
|
||||||
if (frequentlyUsed.length) {
|
if (frequentlyUsed.length) {
|
||||||
emojis = frequentlyUsed.map(id => {
|
emojis = frequentlyUsed
|
||||||
const emoji = custom.filter(e => e.id === id)[0]
|
.map(id => {
|
||||||
if (emoji) {
|
const emoji = custom.filter(e => e.id === id)[0]
|
||||||
return emoji
|
if (emoji) {
|
||||||
}
|
return emoji
|
||||||
|
}
|
||||||
|
|
||||||
return id
|
return id
|
||||||
}).filter(id => !!getData(id))
|
})
|
||||||
|
.filter(id => !!getData(id))
|
||||||
}
|
}
|
||||||
|
|
||||||
if (emojis.length === 0 && frequentlyUsed.length > 0) {
|
if (emojis.length === 0 && frequentlyUsed.length > 0) {
|
||||||
return null;
|
return null
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -465,9 +465,7 @@ export default class Picker extends React.PureComponent {
|
||||||
native={native}
|
native={native}
|
||||||
hasStickyPosition={this.hasStickyPosition}
|
hasStickyPosition={this.hasStickyPosition}
|
||||||
i18n={this.i18n}
|
i18n={this.i18n}
|
||||||
recent={
|
recent={category.name == 'Recent' ? recent : undefined}
|
||||||
category.name == 'Recent' ? recent : undefined
|
|
||||||
}
|
|
||||||
custom={
|
custom={
|
||||||
category.name == 'Recent' ? CUSTOM_CATEGORY.emojis : undefined
|
category.name == 'Recent' ? CUSTOM_CATEGORY.emojis : undefined
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue