Process statuses on COMPOSE_SUBMIT_SUCCESS (fixes #579)

pull/582/head
Thibaut Girka 2018-07-15 23:24:19 +02:00 committed by ThibG
parent 012ca4c68d
commit 8501ad5c5c
1 changed files with 4 additions and 0 deletions

View File

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