Skip to content
Snippets Groups Projects
Commit 41b4be69 authored by Eugen Rochko's avatar Eugen Rochko
Browse files

Fix rule

parent d5da55c6
No related branches found
No related tags found
No related merge requests found
......@@ -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));
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment