Process statuses on COMPOSE_SUBMIT_SUCCESS (fixes #579)
parent
6eee447159
commit
7cc4e6b2b2
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue