Process statuses on COMPOSE_SUBMIT_SUCCESS (fixes #579)

lolsob-rspec
Thibaut Girka 2018-07-15 23:24:19 +02:00 committed by ThibG
parent 6eee447159
commit 7cc4e6b2b2
1 changed files with 4 additions and 0 deletions

View File

@ -14,6 +14,9 @@ import {
PIN_SUCCESS, PIN_SUCCESS,
UNPIN_SUCCESS, UNPIN_SUCCESS,
} from 'flavours/glitch/actions/interactions'; } from 'flavours/glitch/actions/interactions';
import {
COMPOSE_SUBMIT_SUCCESS,
} from 'flavours/glitch/actions/compose';
import { import {
STATUS_FETCH_SUCCESS, STATUS_FETCH_SUCCESS,
CONTEXT_FETCH_SUCCESS, CONTEXT_FETCH_SUCCESS,
@ -101,6 +104,7 @@ export default function statuses(state = initialState, action) {
case TIMELINE_UPDATE: case TIMELINE_UPDATE:
case STATUS_FETCH_SUCCESS: case STATUS_FETCH_SUCCESS:
case NOTIFICATIONS_UPDATE: case NOTIFICATIONS_UPDATE:
case COMPOSE_SUBMIT_SUCCESS:
return normalizeStatus(state, action.status); return normalizeStatus(state, action.status);
case REBLOG_SUCCESS: case REBLOG_SUCCESS:
case UNREBLOG_SUCCESS: case UNREBLOG_SUCCESS: