Skip to content

Commit

Permalink
Fixed incorrect on-send / on-receive handling
Browse files Browse the repository at this point in the history
Signed-off-by: Julien Eluard <julien.eluard@gmail.com>
  • Loading branch information
jeluard committed Oct 23, 2018
1 parent 8559372 commit 7c49ba5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/status_im/chat/commands/core.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -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])))
Expand Down

0 comments on commit 7c49ba5

Please sign in to comment.