dont get chat icon twice

This commit is contained in:
Barış Soner Uşaklı
2026-02-21 20:01:21 -05:00
parent a70a62ccf9
commit ab4fc0e3b0

View File

@@ -48,8 +48,7 @@ define('forum/header/chat', [
.toggleClass('fa-comment-o', count <= 0);
const countText = count > 99 ? '99+' : count;
components.get('chat/icon')
.toggleClass('unread-count', count > 0)
chatIcon.toggleClass('unread-count', count > 0)
.attr('data-content', countText);
components.get('chat/count').toggleClass('hidden', count <= 0).text(countText);
hooks.fire('action:chat.updateCount', { count });