mirror of
https://github.com/status-im/status-react.git
synced 2025-01-14 04:55:13 +00:00
Fixed incorrect on-send / on-receive handling
Signed-off-by: Julien Eluard <julien.eluard@gmail.com>
This commit is contained in:
parent
6b1c6c7d0a
commit
56e3aaebe0
@ -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])))
|
||||
|
Loading…
x
Reference in New Issue
Block a user