@ -4,7 +4,11 @@ import {
SEARCH _FETCH _SUCCESS ,
SEARCH _FETCH _SUCCESS ,
SEARCH _SHOW ,
SEARCH _SHOW ,
} from '../actions/search' ;
} from '../actions/search' ;
import { COMPOSE _MENTION , COMPOSE _REPLY } from '../actions/compose' ;
import {
COMPOSE _MENTION ,
COMPOSE _REPLY ,
COMPOSE _DIRECT ,
} from '../actions/compose' ;
import { Map as ImmutableMap , List as ImmutableList } from 'immutable' ;
import { Map as ImmutableMap , List as ImmutableList } from 'immutable' ;
const initialState = ImmutableMap ( {
const initialState = ImmutableMap ( {
@ -29,6 +33,7 @@ export default function search(state = initialState, action) {
return state . set ( 'hidden' , false ) ;
return state . set ( 'hidden' , false ) ;
case COMPOSE _REPLY :
case COMPOSE _REPLY :
case COMPOSE _MENTION :
case COMPOSE _MENTION :
case COMPOSE _DIRECT :
return state . set ( 'hidden' , true ) ;
return state . set ( 'hidden' , true ) ;
case SEARCH _FETCH _SUCCESS :
case SEARCH _FETCH _SUCCESS :
return state . set ( 'results' , ImmutableMap ( {
return state . set ( 'results' , ImmutableMap ( {