[Glitch] Feature: Direct message from Statuses

Port 904a2479dd to glitch-soc
This commit is contained in:
Thibaut Girka
2018-04-10 21:38:02 +02:00
parent fb6de5310d
commit 97c69de416
6 changed files with 39 additions and 9 deletions

View File

@@ -5,6 +5,7 @@ import { makeGetStatus } from 'flavours/glitch/selectors';
import {
replyCompose,
mentionCompose,
directCompose,
} from 'flavours/glitch/actions/compose';
import {
reblog,
@@ -131,6 +132,10 @@ const mapDispatchToProps = (dispatch, { intl }) => ({
}
},
onDirect (account, router) {
dispatch(directCompose(account, router));
},
onMention (account, router) {
dispatch(mentionCompose(account, router));
},