fix navigation to user profile

This commit is contained in:
Parvesh Monu 2023-03-05 22:33:45 +05:30
parent 9959d537f3
commit 9ffefe74bb
No known key found for this signature in database
GPG Key ID: F399696520817DE9
4 changed files with 8 additions and 7 deletions

View File

@ -18,8 +18,7 @@
{:db (-> db
(assoc-in [:keycard :creating-backup?] backup-type))}
(when (:multiaccount db)
(navigation/change-tab :browser-stack)) ;; Profile tab - Currently browser tab is used for
;; profile
(navigation/navigate-to-cofx :my-profile nil))
(navigation/navigate-to-cofx :seed-phrase nil)))
(rf/defn recovery-card-pressed

View File

@ -70,7 +70,7 @@
:status nil))
:hide-popover nil})
(when (:multiaccount db)
(navigation/change-tab :browser-stack)) ;; Profile tab - Currently browser tab is used for profile
(navigation/navigate-to-cofx :my-profile nil))
(when-not (:multiaccounts/login db)
(if (:popover/popover db)
(navigation/navigate-replace :keycard-pin nil)

View File

@ -64,8 +64,9 @@
(let [own (new-chat.db/own-public-key? db public-key)]
(cond
(and public-key own)
{:shell/change-tab-fx :browser-stack ;; Profile tab - Currently browser tab is used for profile
:pop-to-root-fx :shell-stack}
(rf/merge cofx
{:pop-to-root-fx :shell-stack}
(navigation/navigate-to-cofx :my-profile nil))
(and public-key (not own))
(rf/merge cofx

View File

@ -109,8 +109,9 @@
(log/info "universal-links: handling view profile" public-key)
(cond
(and public-key (new-chat.db/own-public-key? db public-key))
{:shell/change-tab-fx :browser-stack ;; Profile tab - Currently browser tab is used for profile
:pop-to-root-fx :shell-stack}
(rf/merge cofx
{:pop-to-root-fx :shell-stack}
(navigation/navigate-to-cofx :my-profile nil))
public-key
{:dispatch [:chat.ui/show-profile public-key ens-name]}))