mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-25 04:36:46 +00:00
Refactor: Move data-access code to Typescript w/ shared interface
This commit is contained in:
@@ -3,11 +3,7 @@ import { omit, reject } from 'lodash';
|
||||
import { normalize } from '../../types/PhoneNumber';
|
||||
import { trigger } from '../../shims/events';
|
||||
import { cleanSearchTerm } from '../../util/cleanSearchTerm';
|
||||
import {
|
||||
searchConversations as dataSearchConversations,
|
||||
searchMessages as dataSearchMessages,
|
||||
searchMessagesInConversation,
|
||||
} from '../../../js/modules/data';
|
||||
import dataInterface from '../../sql/Client';
|
||||
import { makeLookup } from '../../util/makeLookup';
|
||||
|
||||
import {
|
||||
@@ -20,6 +16,12 @@ import {
|
||||
ShowArchivedConversationsActionType,
|
||||
} from './conversations';
|
||||
|
||||
const {
|
||||
searchConversations: dataSearchConversations,
|
||||
searchMessages: dataSearchMessages,
|
||||
searchMessagesInConversation,
|
||||
} = dataInterface;
|
||||
|
||||
// State
|
||||
|
||||
export type MessageSearchResultType = MessageType & {
|
||||
|
||||
Reference in New Issue
Block a user