diff --git a/resources/js/bots/console/bot.js b/resources/js/bots/console/bot.js index 22b26ae63b..2ff1a4c3e8 100644 --- a/resources/js/bots/console/bot.js +++ b/resources/js/bots/console/bot.js @@ -516,15 +516,6 @@ if (faucets.length > 0) { status.command(faucetCommandConfig); } -status.response({ - name: "grant-permissions", - scope: ["personal-chats", "anonymous", "registered", "dapps"], - color: "#7099e6", - description: "Grant permissions", - icon: "lock_white", - executeImmediately: true -}); - status.addListener("on-message-input-change", function (params, context) { return jsSuggestions({code: params.message}, context); }); diff --git a/src/status_im/chat/events/commands.cljs b/src/status_im/chat/events/commands.cljs index 85352f4b39..40c1fa62e4 100644 --- a/src/status_im/chat/events/commands.cljs +++ b/src/status_im/chat/events/commands.cljs @@ -83,19 +83,9 @@ (shortcuts/shortcut-override-fx db message opts) (request-command-message-data db message opts)))) -(handlers/register-handler-fx - :execute-command-immediately - [re-frame/trim-v] - (fn [_ [{command-name :name}]] - (case (keyword command-name) - :grant-permissions - {:dispatch [:request-permissions {:permissions [:read-external-storage] - :on-allowed #(re-frame/dispatch [:initialize-geth])}]} - (log/debug "ignoring command: " command-name)))) - ;; NOTE(goranjovic) - continues execution of a command that was paused by a shortcut (defn execute-stored-command [{:keys [db]}] (let [{:keys [message opts]} (:commands/stored-command db)] (-> db (request-command-message-data message opts) - (dissoc :commands/stored-command)))) \ No newline at end of file + (dissoc :commands/stored-command)))) diff --git a/src/status_im/chat/views/message/request_message.cljs b/src/status_im/chat/views/message/request_message.cljs index 22fda2fd14..f52a2c84d0 100644 --- a/src/status_im/chat/views/message/request_message.cljs +++ b/src/status_im/chat/views/message/request_message.cljs @@ -95,7 +95,6 @@ network-mismatch? (and request-network (not= request-network network)) on-press-handler (cond network-mismatch? nil - (:execute-immediately? command) #(dispatch [:execute-command-immediately command]) (and (not answered?) status-initialized?) #(set-chat-command message-id command))] [view [touchable-highlight