From 2983215dee080d2989e5228ffd26f158b49fd95f Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Sat, 10 Jul 2021 15:43:48 +0100 Subject: [PATCH] Improve and consolidate typing --- src/vector/platform/ElectronPlatform.tsx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/vector/platform/ElectronPlatform.tsx b/src/vector/platform/ElectronPlatform.tsx index 71f74fdc5b..574891e86d 100644 --- a/src/vector/platform/ElectronPlatform.tsx +++ b/src/vector/platform/ElectronPlatform.tsx @@ -22,10 +22,7 @@ import BaseEventIndexManager, { ICrawlerCheckpoint, IEventAndProfile, IIndexStats, - IMatrixEvent, - IMatrixProfile, ISearchArgs, - ISearchResult, } from 'matrix-react-sdk/src/indexing/BaseEventIndexManager'; import dis from 'matrix-react-sdk/src/dispatcher/dispatcher'; import { _t, _td } from 'matrix-react-sdk/src/languageHandler'; @@ -54,6 +51,7 @@ import { CheckUpdatesPayload } from "matrix-react-sdk/src/dispatcher/payloads/Ch import ToastStore from "matrix-react-sdk/src/stores/ToastStore"; import GenericExpiringToast from "matrix-react-sdk/src/components/views/toasts/GenericExpiringToast"; import SettingsStore from 'matrix-react-sdk/src/settings/SettingsStore'; +import { IMatrixProfile, IEventWithRoomId as IMatrixEvent, IResultRoomEvents } from "matrix-js-sdk/src/@types/search"; import VectorBasePlatform from './VectorBasePlatform'; @@ -172,7 +170,7 @@ class SeshatIndexManager extends BaseEventIndexManager { return this._ipcCall('commitLiveEvents'); } - async searchEventIndex(searchConfig: ISearchArgs): Promise { + async searchEventIndex(searchConfig: ISearchArgs): Promise { return this._ipcCall('searchEventIndex', searchConfig); }