This commit is contained in:
2458773093
2019-08-17 14:09:15 +03:00
parent dd73e1b00e
commit 2fdeccd1c6
7 changed files with 40 additions and 3 deletions

View File

@@ -140,6 +140,18 @@ export function redraft(status, raw_text) {
};
};
export function editStatus(status) {
return dispatch => {
dispatch({
type: REDRAFT,
edit: true,
status,
});
dispatch(openModal('COMPOSE'));
};
};
export function deleteStatus(id, routerHistory, withRedraft = false) {
return (dispatch, getState) => {
if (!me) return;