diff --git a/src/search/SearchController.ts b/src/search/SearchController.ts index 4e1bdc80d8..7f28c5dddc 100644 --- a/src/search/SearchController.ts +++ b/src/search/SearchController.ts @@ -1,6 +1,5 @@ import { StateStore } from '@stream-io/state-store'; import type { Unsubscribe } from '@stream-io/state-store'; -import type { MessageResponse } from '../types'; import type { StreamChat } from '../client'; import type { SearchSource } from './BaseSearchSource'; import { ConfigController } from '../configuration/ConfigController'; @@ -13,12 +12,6 @@ export type SearchControllerState = { sources: SearchSource[]; }; -export type InternalSearchControllerState = { - // FIXME: focusedMessage should live in a MessageListController class that does not exist yet. - // This state prop should be then removed - focusedMessage?: MessageResponse; -}; - export type SearchControllerConfig = { // The controller will make sure there is always exactly one active source. Enabled by default. keepSingleActiveSource: boolean; @@ -43,11 +36,6 @@ export const DEFAULT_SEARCH_CONTROLLER_CONFIG: SearchControllerConfig = deepFree }); export class SearchController { - /** - * Not intended for direct use by integrators, might be removed without notice resulting in - * broken integrations. - */ - _internalState: StateStore; state: StateStore; /** The shared configuration machinery — see {@link ConfigController}. */ @@ -69,7 +57,6 @@ export class SearchController { searchQuery: '', sources: sources ?? [], }); - this._internalState = new StateStore({}); this.configController = new ConfigController({ defaults: DEFAULT_SEARCH_CONTROLLER_CONFIG, constructorOptions: config,