Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(frontend): カスタム絵文字が削除されている場合は絵文字ピッカーに表示しないように #13508

Conversation

kakkokari-gtyih
Copy link
Contributor

What

Cherry-picked from https://activitypub.software/TransFem-org/Sharkey/-/commit/687035c5ca826b0606678325f3ee975f396fa79c

存在しないカスタム絵文字は絵文字ピッカーで選択できないようにする

Why

Additional info (optional)

Checklist

  • Read the contribution guide
  • Test working in a local environment
  • (If needed) Add story of storybook
  • (If needed) Update CHANGELOG.md
  • (If possible) Add tests

@github-actions github-actions bot added the packages/frontend Client side specific issue/PR label Mar 4, 2024
Copy link

codecov bot commented Mar 4, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 77.66%. Comparing base (f8261a1) to head (5fe86ed).
Report is 440 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop   #13508      +/-   ##
===========================================
- Coverage    79.95%   77.66%   -2.30%     
===========================================
  Files          956      185     -771     
  Lines       108864    24996   -83868     
  Branches      8413      481    -7932     
===========================================
- Hits         87045    19412   -67633     
+ Misses       21819     5577   -16242     
- Partials         0        7       +7     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@@ -152,10 +152,10 @@ const {
} = defaultStore.reactiveState;

const recentlyUsedEmojisDef = computed(() => {
return recentlyUsedEmojis.value.map(getDef);
return recentlyUsedEmojis.value.map(getDef).filter(x => x != null);;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

getDefの実装によりnullが返ることはなくなっているので、この実装を単純に取り込むのみでは対応できないかと思います。

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

動作的には治っていそうなのでこれ自体Closeしてもいいかもしれない

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
packages/frontend Client side specific issue/PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants