Skip to content

Commit

Permalink
Merge branch 'develop' into 19645
Browse files Browse the repository at this point in the history
  • Loading branch information
ibrkhalil authored Apr 24, 2024
2 parents 39e0493 + e6f9932 commit effe935
Show file tree
Hide file tree
Showing 56 changed files with 647 additions and 566 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ class StatusModule(private val reactContext: ReactApplicationContext, private va
}

override fun handleSignal(jsonEventString: String) {
Log.d(TAG, "Signal event")
val params = Arguments.createMap()
params.putString("jsonEvent", jsonEventString)
reactContext.getJSModule(DeviceEventManagerModule.RCTDeviceEventEmitter::class.java).emit("gethEvent", params)
Expand Down
3 changes: 0 additions & 3 deletions modules/react-native-status/ios/RCTStatus/RCTStatus.m
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,6 @@ - (void)handleSignal:(NSString *)signal
return;
}

#if DEBUG
NSLog(@"[handleSignal] Received an event from Status-Go: %@", signal);
#endif
[bridge.eventDispatcher sendAppEventWithName:@"gethEvent"
body:@{@"jsonEvent": signal}];

Expand Down
2 changes: 0 additions & 2 deletions modules/react-native-status/nodejs/status.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1128,8 +1128,6 @@ Persistent<Function> r_call;
std::queue<std::string> q;

void run(char *json) {
printf("signal received %s\n", json);

std::string str(json);
q.push(str);
}
Expand Down
99 changes: 0 additions & 99 deletions src/legacy/status_im/contact/block.cljs

This file was deleted.

87 changes: 0 additions & 87 deletions src/legacy/status_im/contact/db.cljs

This file was deleted.

49 changes: 0 additions & 49 deletions src/legacy/status_im/contact/db_test.cljs

This file was deleted.

1 change: 0 additions & 1 deletion src/legacy/status_im/events.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
legacy.status-im.browser.core
legacy.status-im.browser.permissions
legacy.status-im.chat.models.loading
legacy.status-im.contact.block
legacy.status-im.currency.core
legacy.status-im.data-store.chats
legacy.status-im.data-store.switcher-cards
Expand Down
12 changes: 7 additions & 5 deletions src/legacy/status_im/node/core.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
[clojure.string :as string]
[legacy.status-im.utils.deprecated-types :as types]
[react-native.platform :as platform]
[status-im.config :as config]))
[status-im.config :as config]
[utils.ethereum.chain :as chain]))

(defn- add-log-level
[config log-level]
Expand Down Expand Up @@ -105,7 +106,7 @@
(some #(string/includes? (str %) "waku") ks)))

(defn get-multiaccount-node-config
[{:keys [profile/profile :networks/networks :networks/current-network]
[{:keys [profile/profile :networks/current-network]
:as db}]
(let [wakuv2-config (get profile :wakuv2-config {})
fleet-key (current-fleet-key db)
Expand All @@ -116,7 +117,10 @@
{:keys [installation-id log-level
waku-bloom-filter-mode]}
profile]
(cond-> (get-in networks [current-network :config])
(cond-> {:NetworkId (chain/chain-keyword->chain-id :mainnet)
:DataDir "/ethereum/mainnet_rpc"
:UpstreamConfig {:Enabled true
:URL config/mainnet-rpc-url}}
:always
(get-base-node-config)

Expand Down Expand Up @@ -173,5 +177,3 @@

:always
(add-log-level log-level))))


Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
:loading @in-progress?
:accessibility-label :block-contact-confirm
:on-press #(do (reset! in-progress? true)
(re-frame/dispatch [:contact.ui/block-contact-confirmed public-key]))}
(re-frame/dispatch [:contact/block-contact public-key]))}
(i18n/label :t/block)]
[react/view {:height 8}]
[quo/button
Expand Down
2 changes: 1 addition & 1 deletion src/legacy/status_im/ui/screens/profile/contact/views.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
:selected blocked?
:icon :main-icons/cancel
:action (if blocked?
#(re-frame/dispatch [:contact.ui/unblock-contact-pressed public-key])
#(re-frame/dispatch [:contact/unblock-contact public-key])
#(re-frame/dispatch [:show-popover
{:view sheets/block-contact
:prevent-closing? true
Expand Down
44 changes: 23 additions & 21 deletions src/quo/components/list_items/user.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -17,26 +17,28 @@
:flex-direction :row
:align-items :center})

(defn action-icon
[{:keys [type on-press on-check disabled? checked?]} customization-color theme]
[rn/touchable-opacity
{:on-press on-press}
(case type
:options
[icons/icon :i/options
{:size 20
:color (colors/theme-colors colors/neutral-50 colors/neutral-40 theme)}]
:checkbox
[selectors/view
{:type :checkbox
:checked? checked?
:customization-color customization-color
:accessibility-label :user-list-toggle-check
:disabled? disabled?
:on-change (when on-check on-check)}]
:close
[text/text "not implemented"]
[rn/view])])
(defn accessory-item
[{:keys [type on-press on-check disabled? checked? child]} customization-color theme]
(if (= type :custom)
child
[rn/touchable-opacity
{:on-press on-press}
(case type
:options
[icons/icon :i/options
{:size 20
:color (colors/theme-colors colors/neutral-50 colors/neutral-40 theme)}]
:checkbox
[selectors/view
{:type :checkbox
:checked? checked?
:customization-color customization-color
:accessibility-label :user-list-toggle-check
:disabled? disabled?
:on-change (when on-check on-check)}]
:close
[text/text "not implemented"]
[rn/view])]))

(defn user
[{:keys [short-chat-key primary-name secondary-name photo-path online? contact? verified?
Expand Down Expand Up @@ -72,4 +74,4 @@
:style {:color (colors/theme-colors colors/neutral-50 colors/neutral-40 theme)}}
short-chat-key])]
(when accessory
[action-icon accessory customization-color disabled? theme])]])
[accessory-item accessory customization-color disabled? theme])]])
Loading

0 comments on commit effe935

Please sign in to comment.