parent
f7ab70ad5a
commit
de5c23d39f
|
@ -296,6 +296,11 @@
|
||||||
(when-let [command (last (first (filter #(= (ffirst %) (name hook-id)) (:id->command db))))]
|
(when-let [command (last (first (filter #(= (ffirst %) (name hook-id)) (:id->command db))))]
|
||||||
(commands-sending/send cofx current-chat-id command params)))))
|
(commands-sending/send cofx current-chat-id command params)))))
|
||||||
|
|
||||||
|
(handlers/register-handler-fx
|
||||||
|
:extensions.chat.command/open-public-chat
|
||||||
|
(fn [_ [_ _ {:keys [topic navigate-to]}]]
|
||||||
|
{:dispatch [:chat.ui/start-public-chat topic {:dont-navigate? (not navigate-to) :navigation-reset? true}]}))
|
||||||
|
|
||||||
(handlers/register-handler-fx
|
(handlers/register-handler-fx
|
||||||
:extensions/show-selection-screen
|
:extensions/show-selection-screen
|
||||||
(fn [cofx [_ _ {:keys [on-select] :as params}]]
|
(fn [cofx [_ _ {:keys [on-select] :as params}]]
|
||||||
|
@ -486,6 +491,10 @@
|
||||||
{:permissions [:read]
|
{:permissions [:read]
|
||||||
:value :extensions.chat.command/send-message
|
:value :extensions.chat.command/send-message
|
||||||
:arguments {:params :map}}
|
:arguments {:params :map}}
|
||||||
|
'chat.command/open-public-chat
|
||||||
|
{:permissions [:read]
|
||||||
|
:value :extensions.chat.command/open-public-chat
|
||||||
|
:arguments {:topic :string :navigate-to :boolean}}
|
||||||
'log
|
'log
|
||||||
{:permissions [:read]
|
{:permissions [:read]
|
||||||
:value :log
|
:value :log
|
||||||
|
|
Loading…
Reference in New Issue