-
-
- {logo}
-
- {envelopeTimestamp === undefined ? (
-
-
-
-
-
- ) : (
-
- )}
- {message === undefined ? (
-
- ) : (
-
{message}
- )}
-
-
- );
- }
-
let activeModal: ReactNode;
if (isCustomizingPreferredReactions) {
activeModal = renderCustomizingPreferredReactionsModal();
diff --git a/ts/state/selectors/inbox.std.ts b/ts/state/selectors/inbox.std.ts
deleted file mode 100644
index ca2cfcbb78..0000000000
--- a/ts/state/selectors/inbox.std.ts
+++ /dev/null
@@ -1,17 +0,0 @@
-// Copyright 2024 Signal Messenger, LLC
-// SPDX-License-Identifier: AGPL-3.0-only
-
-import { createSelector } from 'reselect';
-import type { StateType } from '../reducer.preload.ts';
-
-const getInboxState = (state: StateType) => state.inbox;
-
-export const getInboxEnvelopeTimestamp = createSelector(
- getInboxState,
- ({ envelopeTimestamp }) => envelopeTimestamp
-);
-
-export const getInboxFirstEnvelopeTimestamp = createSelector(
- getInboxState,
- ({ firstEnvelopeTimestamp }) => firstEnvelopeTimestamp
-);
diff --git a/ts/state/smart/Inbox.preload.tsx b/ts/state/smart/Inbox.preload.tsx
index 64972b7f4d..7d45f70ebe 100644
--- a/ts/state/smart/Inbox.preload.tsx
+++ b/ts/state/smart/Inbox.preload.tsx
@@ -4,8 +4,6 @@
import React, { memo } from 'react';
import { useSelector } from 'react-redux';
import { Inbox } from '../../components/Inbox.dom.tsx';
-import { isNightly } from '../../util/version.std.ts';
-import { getIntl } from '../selectors/user.std.ts';
import { SmartCustomizingPreferredReactionsModal } from './CustomizingPreferredReactionsModal.preload.tsx';
import { getIsCustomizingPreferredReactions } from '../selectors/preferredReactions.std.ts';
import type { SmartNavTabsProps } from './NavTabs.preload.tsx';
@@ -15,11 +13,6 @@ import { SmartCallsTab } from './CallsTab.preload.tsx';
import { useItemsActions } from '../ducks/items.preload.ts';
import { getNavTabsCollapsed } from '../selectors/items.dom.ts';
import { SmartChatsTab } from './ChatsTab.preload.tsx';
-import { getHasInitialLoadCompleted } from '../selectors/app.std.ts';
-import {
- getInboxEnvelopeTimestamp,
- getInboxFirstEnvelopeTimestamp,
-} from '../selectors/inbox.std.ts';
import { SmartPreferences } from './Preferences.preload.tsx';
function renderChatsTab() {
@@ -47,24 +40,15 @@ function renderSettingsTab() {
}
export const SmartInbox = memo(function SmartInbox(): React.JSX.Element {
- const i18n = useSelector(getIntl);
const isCustomizingPreferredReactions = useSelector(
getIsCustomizingPreferredReactions
);
- const envelopeTimestamp = useSelector(getInboxEnvelopeTimestamp);
- const firstEnvelopeTimestamp = useSelector(getInboxFirstEnvelopeTimestamp);
- const hasInitialLoadCompleted = useSelector(getHasInitialLoadCompleted);
const navTabsCollapsed = useSelector(getNavTabsCollapsed);
const { toggleNavTabsCollapse } = useItemsActions();
return (