Fix/14021 behaviour on add or remove toots (#14212)
* Add toot send by current user at local state after send a new toot Related to #14021 * Decrement toot counter at profile when remove a toot Related to #14021 * Remove semicolon at end of line
This commit is contained in:
parent
101485a41f
commit
2ada2ae18a
5 changed files with 26 additions and 8 deletions
|
@ -163,7 +163,6 @@ export function submitCompose(routerHistory) {
|
|||
|
||||
// To make the app more responsive, immediately push the status
|
||||
// into the columns
|
||||
|
||||
const insertIfOnline = timelineId => {
|
||||
const timeline = getState().getIn(['timelines', timelineId]);
|
||||
|
||||
|
@ -179,6 +178,7 @@ export function submitCompose(routerHistory) {
|
|||
if (response.data.in_reply_to_id === null && response.data.visibility === 'public') {
|
||||
insertIfOnline('community');
|
||||
insertIfOnline('public');
|
||||
insertIfOnline(`account:${response.data.account.id}`);
|
||||
}
|
||||
}).catch(function (error) {
|
||||
dispatch(submitComposeFail(error));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue