[#6156] fix Share link button in user's profile does not contain profile universal link
This commit is contained in:
parent
dd7132f7d2
commit
bac5839dd0
|
@ -6,7 +6,8 @@
|
|||
[status-im.ui.components.list-selection :as list-selection]
|
||||
[status-im.ui.screens.profile.models :as profile.models]
|
||||
[status-im.utils.handlers :as handlers]
|
||||
[status-im.utils.identicon :as identicon]))
|
||||
[status-im.utils.identicon :as identicon]
|
||||
[status-im.utils.universal-links.core :as universal-links]))
|
||||
|
||||
(re-frame/reg-fx
|
||||
:open-image-picker
|
||||
|
@ -89,7 +90,8 @@
|
|||
(re-frame/reg-fx
|
||||
:profile/share-profile-link
|
||||
(fn [contact-code]
|
||||
(list-selection/open-share {:message contact-code})))
|
||||
(let [link (universal-links/generate-link :user :external contact-code)]
|
||||
(list-selection/open-share {:message link}))))
|
||||
|
||||
(handlers/register-handler-fx
|
||||
:profile/share-profile-link
|
||||
|
|
|
@ -23,7 +23,8 @@
|
|||
[status-im.ui.components.icons.vector-icons :as icons]
|
||||
[status-im.ui.components.common.common :as components.common]
|
||||
[status-im.utils.identicon :as identicon]
|
||||
[clojure.string :as string]))
|
||||
[clojure.string :as string]
|
||||
[status-im.utils.universal-links.core :as universal-links]))
|
||||
|
||||
(defn my-profile-toolbar []
|
||||
[toolbar/toolbar {}
|
||||
|
@ -86,7 +87,7 @@
|
|||
[qr-code-viewer/qr-code-viewer
|
||||
{:style styles/qr-code
|
||||
:footer-button qr-code-share-button
|
||||
:value value
|
||||
:value (universal-links/generate-link :user :external value)
|
||||
:hint (i18n/label :t/qr-code-public-key-hint)
|
||||
:legend (str value)}]]))
|
||||
|
||||
|
|
|
@ -26,6 +26,7 @@
|
|||
:internal "status-im:/"})
|
||||
|
||||
(def links {:public-chat "%s/chat/public/%s"
|
||||
:user "%s/user/%s"
|
||||
:browse "%s/browse/%s"})
|
||||
|
||||
(defn generate-link [link-type domain-type param]
|
||||
|
|
Loading…
Reference in New Issue