Fix missing translation + bot-id in the jail call

This commit is contained in:
janherich 2017-11-06 12:34:21 +01:00 committed by Roman Volosovskyi
parent 55164b8eac
commit d2a2bd3fa7
2 changed files with 6 additions and 7 deletions

View File

@ -135,13 +135,11 @@
(let [params' (update params :context assoc
:debug js/goog.DEBUG
:locale rn-dependencies/i18n.locale)
cb (fn [r]
(let [{:keys [result] :as r'} (types/json->clj r)
{:keys [messages]} result]
(log/debug r')
(doseq [{:keys [type message]} messages]
(log/debug (str "VM console(" type ") - " message)))
(callback r')))]
cb (fn [jail-result]
(let [result (-> jail-result
types/json->clj
(assoc :bot-id jail-id))]
(callback result)))]
(.callJail status jail-id (types/clj->json path) (types/clj->json params') cb))))))
;; We want the mainting (time) windowed queue of all calls to the jail

View File

@ -54,6 +54,7 @@
:sync-synced "In sync"
;;messages
:status-sending "Sending..."
:status-pending "Pending"
:status-sent "Sent"
:status-seen-by-everyone "Seen by everyone"