diff --git a/public/channels.js b/public/channels.js index 913452df..b08b401d 100644 --- a/public/channels.js +++ b/public/channels.js @@ -1789,12 +1789,14 @@ preview = ch.messageCount + ' messages'; } const abbr = avatarTextForChannel(ch); + // abbr may be a Phosphor sprite (HTML) or plain text — detect & emit raw vs escaped. + const isHtmlAbbr = typeof abbr === 'string' && abbr.startsWith('' + '' + + '" aria-hidden="true">' + (isHtmlAbbr ? abbr : escapeHtml(abbr)) + '' + '
' + '
' + '' + escapeHtml(name) + '' +