Signed-off-by: Julien Eluard <julien.eluard@gmail.com>
This commit is contained in:
tbenr 2019-03-02 15:06:06 +01:00 committed by Julien Eluard
parent f7ab70ad5a
commit de5c23d39f
No known key found for this signature in database
GPG Key ID: 6FD7DB5437FCBEF6
1 changed files with 9 additions and 0 deletions

View File

@ -296,6 +296,11 @@
(when-let [command (last (first (filter #(= (ffirst %) (name hook-id)) (:id->command db))))]
(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
:extensions/show-selection-screen
(fn [cofx [_ _ {:keys [on-select] :as params}]]
@ -486,6 +491,10 @@
{:permissions [:read]
:value :extensions.chat.command/send-message
:arguments {:params :map}}
'chat.command/open-public-chat
{:permissions [:read]
:value :extensions.chat.command/open-public-chat
:arguments {:topic :string :navigate-to :boolean}}
'log
{:permissions [:read]
:value :log