-
Notifications
You must be signed in to change notification settings - Fork 985
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: re-fetch community info in community overview and channel
Signed-off-by: yqrashawn <namy.19@gmail.com>
- Loading branch information
Showing
21 changed files
with
328 additions
and
312 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
(ns status-im.common.serialization | ||
(:require | ||
[native-module.core :as native-module] | ||
[status-im.constants :as constants] | ||
[utils.re-frame :as rf] | ||
[utils.transforms :as transforms])) | ||
|
||
(rf/reg-fx :serialization/deserialize-and-compress-key | ||
(fn [{:keys [serialized-key on-success on-error]}] | ||
(native-module/deserialize-and-compress-key | ||
serialized-key | ||
(fn [resp] | ||
(let [{:keys [error]} (transforms/json->clj resp)] | ||
(if error | ||
(on-error error) | ||
(on-success resp))))))) | ||
|
||
(rf/reg-fx :serialization/decompress-public-key | ||
(fn [{:keys [compressed-key on-success on-error]}] | ||
(native-module/compressed-key->public-key | ||
compressed-key | ||
constants/deserialization-key | ||
(fn [resp] | ||
(let [{:keys [error]} (transforms/json->clj resp)] | ||
(if error | ||
(on-error error) | ||
(on-success (str "0x" (subs resp 5))))))))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 1 addition & 15 deletions
16
src/status_im/contexts/chat/home/add_new_contact/effects.cljs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.