Wallet: Set color and emoji (#17906)

* wallet: set color and emoji
This commit is contained in:
Omar Basem 2023-12-06 16:02:53 +04:00 committed by GitHub
parent aaf0b8e423
commit ab61d8d5c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 2 deletions

View File

@ -1,6 +1,7 @@
(ns status-im2.contexts.profile.create.events
(:require
[native-module.core :as native-module]
[status-im2.contexts.emoji-picker.utils :as emoji-picker.utils]
[status-im2.contexts.profile.config :as profile.config]
status-im2.contexts.profile.create.effects
[utils.re-frame :as rf]
@ -14,4 +15,5 @@
:displayName display-name
:password (native-module/sha3 (security/safe-unmask-data password))
:imagePath (profile.config/strip-file-prefix image-path)
:customizationColor color)})
:customizationColor color
:emoji (emoji-picker.utils/random-emoji))})

View File

@ -1,6 +1,7 @@
(ns status-im2.contexts.profile.recover.events
(:require
[native-module.core :as native-module]
[status-im2.contexts.emoji-picker.utils :as emoji-picker.utils]
[status-im2.contexts.profile.config :as profile.config]
status-im2.contexts.profile.recover.effects
[utils.re-frame :as rf]
@ -18,4 +19,5 @@
:mnemonic (security/safe-unmask-data seed-phrase)
:password (native-module/sha3 (security/safe-unmask-data password))
:imagePath (profile.config/strip-file-prefix image-path)
:customizationColor color})})
:customizationColor color
:emoji (emoji-picker.utils/random-emoji)})})