From 82fb243ffe37d6534972b35b7e2dae6567048675 Mon Sep 17 00:00:00 2001 From: Ajay Bura <32841439+ajbura@users.noreply.github.com> Date: Sat, 20 Aug 2022 21:07:20 +0530 Subject: [PATCH] Fix room not selecting with bad emoji data (#772) --- src/app/organisms/emoji-board/custom-emoji.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/organisms/emoji-board/custom-emoji.js b/src/app/organisms/emoji-board/custom-emoji.js index 1298e6ae..09b60522 100644 --- a/src/app/organisms/emoji-board/custom-emoji.js +++ b/src/app/organisms/emoji-board/custom-emoji.js @@ -177,7 +177,7 @@ function getUserImagePack(mx) { } const userImagePack = ImagePack.parsePack(mx.getUserId(), accountDataEmoji.event.content); - userImagePack.displayName ??= 'Personal Emoji'; + if (userImagePack) userImagePack.displayName ??= 'Personal Emoji'; return userImagePack; }