File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 362362 (when (= current-chat-id wallet-chat-id)
363363 (dispatch [:cancel-command ]))
364364 (dispatch [:load-requests! chat-id])
365- (if-not commands-loaded?
365+ ; ; todo rewrite this. temporary fix for https://github.com/status-im/status-react/issues/607
366+ (dispatch [:load-commands! chat-id])
367+ #_(if-not commands-loaded?
366368 (dispatch [:load-commands! chat-id])
367369 (dispatch [:invoke-chat-loaded-callbacks chat-id]))
368370 (if (and (seq messages)
Original file line number Diff line number Diff line change 2020 (let [identity (or identity current-chat-id)
2121 contact (or (get contacts identity)
2222 {:whisper-identity identity})]
23- (dispatch [::fetch-commands! contact]))
23+ (when identity
24+ (dispatch [::fetch-commands! contact])))
2425 ; ; todo uncomment
2526 #_ (if-let [{:keys [file]} (commands/get-by-chat-id identity)]
2627 (dispatch [::parse-commands! identity file])
Original file line number Diff line number Diff line change 410410 (let [message (.-message error)]
411411 (when (or (re-find (re-pattern " Could not connect to the server." ) message)
412412 (re-find (re-pattern " Failed to connect" ) message))
413- (status/restart-rpc ))))))
413+ (status/restart-rpc )
414+ (dispatch [:load-commands! ]))))))
You can’t perform that action at this time.
0 commit comments