mirror of
https://framagit.org/tykayn/mastodon.git
synced 2023-08-25 08:33:12 +02:00
Fix rule
This commit is contained in:
parent
d5da55c6cc
commit
41b4be699f
@ -70,8 +70,13 @@ export function submitCompose() {
|
|||||||
unlisted: getState().getIn(['compose', 'unlisted'])
|
unlisted: getState().getIn(['compose', 'unlisted'])
|
||||||
}).then(function (response) {
|
}).then(function (response) {
|
||||||
dispatch(submitComposeSuccess({ ...response.data }));
|
dispatch(submitComposeSuccess({ ...response.data }));
|
||||||
|
|
||||||
|
// To make the app more responsive, immediately get the status into the columns
|
||||||
dispatch(updateTimeline('home', { ...response.data }));
|
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) {
|
}).catch(function (error) {
|
||||||
dispatch(submitComposeFail(error));
|
dispatch(submitComposeFail(error));
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user