Fix emoji selector on touchscreen

Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
marcin mikołajczak
2023-03-01 20:27:16 +01:00
parent 277045c7a1
commit eb93cb39fd
3 changed files with 13 additions and 5 deletions

View File

@ -40,7 +40,6 @@ export const addCustomToPool = (customEmojis: any[]) => {
const search = (str: string, { maxResults = 5, custom }: searchOptions = {}, custom_emojis?: any): Emoji[] => {
return index.search(str, maxResults)
.flatMap((id: string) => {
console.log(id);
if (id[0] === 'c') {
const { shortcode, static_url } = custom_emojis.get((id as string).slice(1)).toJS();