Fix missing translation + bot-id in the jail call
This commit is contained in:
parent
55164b8eac
commit
d2a2bd3fa7
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue