cleanup last commit

pull/2136/head
Audric Ackermann 3 years ago
parent 4349b699cb
commit 6992305e27
No known key found for this signature in database
GPG Key ID: 999F434D76324AD4

@ -96,8 +96,6 @@ export const MessageSearchResult = (props: Props) => {
direction,
} = props;
console.info('rendering search result message ', id);
const sourceOrDestinationDerivable =
(destination && direction === MessageDirection.outgoing) ||
!destination ||

@ -32,7 +32,6 @@ export const SearchResults = (props: SearchResultsProps) => {
const haveContacts = contacts && contacts.length;
const haveMessages = messages && messages.length;
const noResults = !haveConversations && !haveContacts && !haveMessages;
console.info('SearchResults ', messages?.length);
return (
<div className="module-search-results">

@ -84,7 +84,7 @@ async function doSearch(query: string, options: SearchOptions): Promise<SearchRe
]);
const { conversations, contacts } = discussions;
let filteredMessages = _.compact(messages);
console.warn('before filteredMessages ', filteredMessages);
if (isAdvancedQuery) {
let senderFilter: Array<string> = [];
if (advancedSearchOptions.from && advancedSearchOptions.from.length > 0) {
@ -96,7 +96,6 @@ async function doSearch(query: string, options: SearchOptions): Promise<SearchRe
}
filteredMessages = filterMessages(filteredMessages, advancedSearchOptions, senderFilter);
}
console.warn('aftert filteredMessages ', filteredMessages);
return {
query,
normalizedPhoneNumber: PubKey.normalize(query),
@ -203,7 +202,6 @@ function getAdvancedSearchOptionsFromQuery(query: string): AdvancedSearchOptions
async function queryMessages(query: string) {
try {
const normalized = cleanSearchTerm(query);
console.warn('normalized', normalized);
return searchMessages(normalized);
} catch (e) {
return [];

Loading…
Cancel
Save