mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-02-23 15:11:15 +01:00
dont get chat icon twice
This commit is contained in:
@@ -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 });
|
||||
|
||||
Reference in New Issue
Block a user