1
0
Fork 0
forked from gitea/nas

Add: #213 右サイドメニューからお気に入りを削除するオプション (#262)

This commit is contained in:
KMY(雪あすか) 2023-11-09 11:53:57 +09:00 committed by GitHub
parent 85a6631709
commit e3c71cb3e4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
14 changed files with 61 additions and 36 deletions

View file

@ -2,7 +2,7 @@ import { Map as ImmutableMap, List as ImmutableList } from 'immutable';
import { connect } from 'react-redux';
import { createSelector } from 'reselect';
import { hideRecentEmojis } from 'mastodon/initial_state';
import { isHideItem } from 'mastodon/initial_state';
import { useEmoji } from '../../../actions/emojis';
import { changeSetting } from '../../../actions/settings';
@ -51,7 +51,7 @@ const getFrequentlyUsedEmojis = createSelector([
deckEmojis = [...new Set(deckEmojis)];
let emojis;
if (!hideRecentEmojis) {
if (!isHideItem('recent_emojis')) {
emojis = emojiCounters
.keySeq()
.filter((ee) => deckEmojis.indexOf(ee) < 0)