Fix some pack not visible in emojiboard

This commit is contained in:
Ajay Bura 2022-07-26 16:16:09 +05:30 committed by Ajay Bura
parent 4fd2d3adc2
commit 5816ec7d2f

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