diff --git a/lib/hooks/search-threads.js b/lib/hooks/search-threads.js --- a/lib/hooks/search-threads.js +++ b/lib/hooks/search-threads.js @@ -2,12 +2,12 @@ import * as React from 'react'; +import { sidebarInfoSelector } from '../hooks/sidebar-hooks.js'; import { type ChatThreadItem, useFilteredChatListData, } from '../selectors/chat-selectors.js'; import { useThreadSearchIndex } from '../selectors/nav-selectors.js'; -import { sidebarInfoSelector } from '../selectors/sidebar-selectors.js'; import { threadIsChannel } from '../shared/thread-utils.js'; import type { SetState } from '../types/hook-types.js'; import type { diff --git a/lib/selectors/sidebar-selectors.js b/lib/hooks/sidebar-hooks.js rename from lib/selectors/sidebar-selectors.js rename to lib/hooks/sidebar-hooks.js --- a/lib/selectors/sidebar-selectors.js +++ b/lib/hooks/sidebar-hooks.js @@ -3,7 +3,7 @@ import _orderBy from 'lodash/fp/orderBy.js'; import { createObjectSelector } from 'reselect-map'; -import { childThreadInfos } from './thread-selectors.js'; +import { childThreadInfos } from '../selectors/thread-selectors.js'; import { getMostRecentNonLocalMessageID } from '../shared/message-utils.js'; import { threadInChatList } from '../shared/thread-utils.js'; import type { MessageStore, RawMessageInfo } from '../types/message-types.js'; diff --git a/lib/selectors/chat-selectors.js b/lib/selectors/chat-selectors.js --- a/lib/selectors/chat-selectors.js +++ b/lib/selectors/chat-selectors.js @@ -13,7 +13,7 @@ threadInfoFromSourceMessageIDSelector, threadInfoSelector, } from './thread-selectors.js'; -import { sidebarInfoSelector } from '../selectors/sidebar-selectors.js'; +import { sidebarInfoSelector } from '../hooks/sidebar-hooks.js'; import { createMessageInfo, getMostRecentNonLocalMessageID,