Browse Source

Fix rule

closed-social-glitch-2
Eugen Rochko 7 years ago
parent
commit
41b4be699f
1 changed files with 6 additions and 1 deletions
  1. +6
    -1
      app/assets/javascripts/components/actions/compose.jsx

+ 6
- 1
app/assets/javascripts/components/actions/compose.jsx View File

@ -70,8 +70,13 @@ export function submitCompose() {
unlisted: getState().getIn(['compose', 'unlisted'])
}).then(function (response) {
dispatch(submitComposeSuccess({ ...response.data }));
// To make the app more responsive, immediately get the status into the columns
dispatch(updateTimeline('home', { ...response.data }));
dispatch(updateTimeline('public', { ...response.data }));
if (response.data.in_reply_to_id === null) {
dispatch(updateTimeline('public', { ...response.data }));
}
}).catch(function (error) {
dispatch(submitComposeFail(error));
});

Loading…
Cancel
Save