about summary refs log tree commit diff
path: root/app/javascript/flavours/glitch/containers
diff options
context:
space:
mode:
authorThibaut Girka <thib@sitedethib.com>2018-04-10 21:38:02 +0200
committerThibaut Girka <thib@sitedethib.com>2018-05-16 19:45:30 +0200
commit97c69de4162bf9dd5670c68ed03a6bb998e7c53d (patch)
tree1f4f3cd914cf0b4e689e8540d36c9fcfbc07d026 /app/javascript/flavours/glitch/containers
parentfb6de5310dd2537af6dd94ada7e521d7ab5dfb09 (diff)
[Glitch] Feature: Direct message from Statuses
Port 904a2479dd2085dfc94f33746ad6f7a755e72609 to glitch-soc
Diffstat (limited to 'app/javascript/flavours/glitch/containers')
-rw-r--r--app/javascript/flavours/glitch/containers/status_container.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/javascript/flavours/glitch/containers/status_container.js b/app/javascript/flavours/glitch/containers/status_container.js
index 3fc6a6a79..acec00e12 100644
--- a/app/javascript/flavours/glitch/containers/status_container.js
+++ b/app/javascript/flavours/glitch/containers/status_container.js
@@ -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));
   },