Fix some pack not visible in emojiboard

This commit is contained in:
Ajay Bura 2022-07-26 16:16:09 +05:30
parent b2342ecd16
commit 4d76b593fe

View file

@ -206,7 +206,6 @@ function EmojiBoard({ onSelect, searchRef }) {
const room = initMatrix.matrixClient.getRoom(selectedRoomId);
if (room) {
const packs = getRelevantPacks(room.client, [room])
.filter((pack) => pack.usage.includes('emoticon'))
.filter((pack) => pack.getEmojis().length !== 0);
// Set an index for each pack so that we know where to jump when the user uses the nav