Fixed incorrect on-send / on-receive handling

Signed-off-by: Julien Eluard <julien.eluard@gmail.com>
This commit is contained in:
Julien Eluard 2018-10-23 08:14:56 +02:00
parent 6b1c6c7d0a
commit 56e3aaebe0
No known key found for this signature in database
GPG Key ID: 6FD7DB5437FCBEF6
1 changed files with 2 additions and 2 deletions

View File

@ -149,8 +149,8 @@
(description [_] description)
(parameters [_] parameters)
(validate [_ _ _])
(on-send [_ _ _] (when on-send {:dispatch on-send}))
(on-receive [_ _ _] (when on-receive {:dispatch on-receive}))
(on-send [_ command-message _] (when on-send {:dispatch (on-send {:value command-message})}))
(on-receive [_ command-message _] (when on-receive {:dispatch (on-receive {:value command-message})}))
(short-preview [_ props] (short-preview props))
(preview [_ props] (preview props)))]
(load-commands cofx [new-command])))