From fef7694b4885f523a36c374fa342707d6c64ba27dc2f2189824c206bbafa2db7 Mon Sep 17 00:00:00 2001 From: AidarKC Date: Fri, 21 Aug 2026 14:59:03 +0400 Subject: [PATCH] Show unread count in channel list --- shine-UI/js/pages/channels-list.js | 32 +----------------------------- 1 file changed, 1 insertion(+), 31 deletions(-) diff --git a/shine-UI/js/pages/channels-list.js b/shine-UI/js/pages/channels-list.js index 77acd5dc..c888a990 100644 --- a/shine-UI/js/pages/channels-list.js +++ b/shine-UI/js/pages/channels-list.js @@ -1219,7 +1219,6 @@ function renderListContent({ screen, container, listState, navigate, refreshFeed const main = renderChannelMain(channel); - const isGuest = !state.session.isAuthorized; const controls = document.createElement('div'); controls.className = 'channel-row-controls'; @@ -1230,40 +1229,11 @@ function renderListContent({ screen, container, listState, navigate, refreshFeed const count = document.createElement('span'); count.className = 'unread channel-row-count'; const unreadCount = Number(channel.unreadCount || 0); - - if (!isGuest) { - const menuButton = document.createElement('button'); - menuButton.type = 'button'; - menuButton.className = 'channel-menu-trigger'; - menuButton.textContent = '…'; - menuButton.addEventListener('click', (event) => { - event.stopPropagation(); - animatePress(menuButton); - listState.revealedCounters.add(channel.id); - - if (listState.openMenuId === channel.id) { - closeChannelMenu(listState); - rerenderList(); - return; - } - - listState.openMenuId = channel.id; - openChannelMenu({ - listState, - channel, - anchorEl: menuButton, - refreshFeed: async () => loadFeedAndRender({ screen, listState, contentEl: container, navigate }), - rerenderList, - }); - rerenderList(); - }); - controls.append(menuButton); - } - controls.append(time); if (unreadCount > 0) { count.textContent = unreadCount > 99 ? '99+' : String(unreadCount); controls.append(count); } + controls.append(time); row.append(avatar, main, controls); row.addEventListener('click', () => {