diff --git a/app/src/components/BottomTabBar.tsx b/app/src/components/BottomTabBar.tsx index 9f10feaac..205de87e5 100644 --- a/app/src/components/BottomTabBar.tsx +++ b/app/src/components/BottomTabBar.tsx @@ -1,7 +1,6 @@ import { useLocation, useNavigate } from 'react-router-dom'; import { useCoreState } from '../providers/CoreStateProvider'; -import { useAppSelector } from '../store/hooks'; const tabs = [ { @@ -108,16 +107,6 @@ const BottomTabBar = () => { const { snapshot } = useCoreState(); const token = snapshot.sessionToken; - const conversationsUnreadCount = useAppSelector(state => { - const { threads, lastViewedAt } = state.thread; - if (threads.length === 0) return 0; - return threads.filter(t => { - const viewed = lastViewedAt[t.id]; - const lastMsg = new Date(t.lastMessageAt || t.createdAt).getTime(); - return viewed == null || lastMsg > viewed; - }).length; - }); - const hiddenPaths = ['/', '/login']; if ( !token || @@ -146,7 +135,6 @@ const BottomTabBar = () => {