From 8501ad5c5cce7574d093f0da1c5e30a681550dc3 Mon Sep 17 00:00:00 2001 From: Thibaut Girka Date: Sun, 15 Jul 2018 23:24:19 +0200 Subject: Process statuses on COMPOSE_SUBMIT_SUCCESS (fixes #579) --- app/javascript/flavours/glitch/reducers/statuses.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/javascript/flavours/glitch/reducers/statuses.js b/app/javascript/flavours/glitch/reducers/statuses.js index 94f367d72..617d96e5d 100644 --- a/app/javascript/flavours/glitch/reducers/statuses.js +++ b/app/javascript/flavours/glitch/reducers/statuses.js @@ -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: -- cgit