th: glitch: compose: remove annoying post published messages
This commit is contained in:
parent
cca4f085d6
commit
aa8741fff3
1 changed files with 10 additions and 6 deletions
|
@ -301,12 +301,16 @@ export function submitCompose(routerHistory) {
|
||||||
insertIfOnline('direct');
|
insertIfOnline('direct');
|
||||||
}
|
}
|
||||||
|
|
||||||
dispatch(showAlert({
|
// Upstream shows a "post published" message every time you post now. This is highly annoying.
|
||||||
message: statusId === null ? messages.published : messages.saved,
|
// Instead, only display a message if a draft is saved.
|
||||||
action: messages.open,
|
if (statusId !== null) {
|
||||||
dismissAfter: 10000,
|
dispatch(showAlert({
|
||||||
onClick: () => routerHistory.push(`/@${response.data.account.username}/${response.data.id}`),
|
message: messages.saved,
|
||||||
}));
|
action: messages.open,
|
||||||
|
dismissAfter: 10000,
|
||||||
|
onClick: () => routerHistory.push(`/@${response.data.account.username}/${response.data.id}`),
|
||||||
|
}));
|
||||||
|
}
|
||||||
}).catch(function (error) {
|
}).catch(function (error) {
|
||||||
dispatch(submitComposeFail(error));
|
dispatch(submitComposeFail(error));
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue