Fix room not selecting with bad emoji data (#772)

This commit is contained in:
Ajay Bura 2022-08-20 21:07:20 +05:30
parent 6cbf1b2eac
commit 82fb243ffe

View file

@ -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;
}