Commands are not shown in group chat after member is added (#1031)
This commit is contained in:
parent
954acda50f
commit
9a80548cf3
|
@ -83,6 +83,7 @@
|
|||
:chat-id from})]))))
|
||||
|
||||
(register-handler :received-message
|
||||
(after #(dispatch [:update-suggestions]))
|
||||
(u/side-effect!
|
||||
(fn [db [_ message]]
|
||||
(add-message db message))))
|
||||
|
|
|
@ -163,11 +163,7 @@
|
|||
set-layout-height #(r/set-state component {:height %})
|
||||
command (subscribe [:selected-chat-command])]
|
||||
(r/create-class
|
||||
{:component-will-mount
|
||||
(fn []
|
||||
(dispatch [:update-suggestions]))
|
||||
|
||||
:reagent-render
|
||||
{:reagent-render
|
||||
(fn [{:keys [anim-margin]}]
|
||||
(let [{:keys [width height]} (r/state component)
|
||||
command @command]
|
||||
|
|
Loading…
Reference in New Issue