parent
d1040c01df
commit
08905e1386
3 changed files with 3 additions and 3 deletions
|
@ -205,7 +205,7 @@ export class MainHeader extends React.Component<PropsType, StateType> {
|
|||
updateSearchTerm(searchTerm);
|
||||
}
|
||||
|
||||
if (searchTerm.length < 2) {
|
||||
if (searchTerm.length < 1) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -348,7 +348,7 @@ export function reducer(
|
|||
const { payload } = action;
|
||||
const { query } = payload;
|
||||
|
||||
const hasQuery = Boolean(query && query.length >= 2);
|
||||
const hasQuery = Boolean(query);
|
||||
const isWithinConversation = Boolean(state.searchConversationId);
|
||||
|
||||
return {
|
||||
|
|
|
@ -59,7 +59,7 @@ export const getStartSearchCounter = createSelector(
|
|||
|
||||
export const isSearching = createSelector(
|
||||
getQuery,
|
||||
(query: string): boolean => query.trim().length > 1
|
||||
(query: string): boolean => query.trim().length > 0
|
||||
);
|
||||
|
||||
export const getMessageSearchResultLookup = createSelector(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue