Add status reference menu

This commit is contained in:
KMY 2023-07-06 17:09:14 +09:00
parent c656f41b35
commit 44a987810b
8 changed files with 84 additions and 3 deletions

View file

@ -13,6 +13,7 @@ import {
replyCompose,
mentionCompose,
directCompose,
insertReferenceCompose,
} from '../actions/compose';
import {
blockDomain,
@ -192,6 +193,10 @@ const mapDispatchToProps = (dispatch, { intl, contextType }) => ({
});
},
onReference (status) {
dispatch(insertReferenceCompose(0, status.get('url')));
},
onTranslate (status) {
if (status.get('translation')) {
dispatch(undoStatusTranslation(status.get('id'), status.get('poll')));