.set('idempotencyKey', uuid());
case COMPOSE_DIRECT:
return state
- .update('text', text => `${text}@${action.account.get('acct')} `)
+ .update('text', text => `@${action.account.get('acct')} `)
.set('privacy', 'direct')
.set('focusDate', new Date())
.set('idempotencyKey', uuid());
SEARCH_FETCH_SUCCESS,
SEARCH_SHOW,
} 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';
const initialState = ImmutableMap({
return state.set('hidden', false);
case COMPOSE_REPLY:
case COMPOSE_MENTION:
+ case COMPOSE_DIRECT:
return state.set('hidden', true);
case SEARCH_FETCH_SUCCESS:
return state.set('results', ImmutableMap({