diff --git a/index.html b/index.html index 2c48b0c..82f7730 100644 --- a/index.html +++ b/index.html @@ -1195,8 +1195,13 @@ window.openFriendProfile = async function(uid) { const displayName = profile.displayName || 'No Display Name'; const avatarEl = document.getElementById('fp-avatar'); - if (profile.avatarUrl) avatarEl.innerHTML = ``; - else avatarEl.textContent = (nick || displayName)[0].toUpperCase(); + if (profile.avatarUrl && isEmoji(profile.avatarUrl)) { + avatarEl.innerHTML = `${profile.avatarUrl}`; + } else if (profile.avatarUrl) { + avatarEl.innerHTML = ``; + } else { + avatarEl.textContent = (nick || displayName)[0].toUpperCase(); + } document.getElementById('fp-name-text').textContent = nick || displayName;