about summary refs log tree commit diff
path: root/app/javascript/flavours/glitch
diff options
context:
space:
mode:
authorThibaut Girka <thib@sitedethib.com>2018-07-15 23:24:19 +0200
committerThibG <thib@sitedethib.com>2018-07-17 21:54:36 +0200
commit8501ad5c5cce7574d093f0da1c5e30a681550dc3 (patch)
tree76d0ec3a1afba2695cf583238c7d5cb0ace3011d /app/javascript/flavours/glitch
parent012ca4c68d785dcf13e4cabd16b09a844e622f6b (diff)
Process statuses on COMPOSE_SUBMIT_SUCCESS (fixes #579)
Diffstat (limited to 'app/javascript/flavours/glitch')
-rw-r--r--app/javascript/flavours/glitch/reducers/statuses.js4
1 files changed, 4 insertions, 0 deletions
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
@@ -15,6 +15,9 @@ import {
   UNPIN_SUCCESS,
 } from 'flavours/glitch/actions/interactions';
 import {
+  COMPOSE_SUBMIT_SUCCESS,
+} from 'flavours/glitch/actions/compose';
+import {
   STATUS_FETCH_SUCCESS,
   CONTEXT_FETCH_SUCCESS,
   STATUS_MUTE_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: