[#12332] Redirect to community chat on pressing PN
This commit is contained in:
parent
8c493510a4
commit
2f0e0af1a1
|
@ -45,6 +45,7 @@
|
|||
["p/" :chat-id] :private-chat
|
||||
["cr/" :community-id] :community-requests
|
||||
["c/" :community-id] :community
|
||||
["cc/" :chat-id] :community-chat
|
||||
"g/" group-chat-extractor
|
||||
["wallet/" :account] :wallet-account
|
||||
["u/" :user-id] :user
|
||||
|
@ -216,6 +217,9 @@
|
|||
(= handler :community)
|
||||
(cb {:type handler :community-id (:community-id route-params)})
|
||||
|
||||
(= handler :community-chat)
|
||||
(cb {:type handler :chat-id (:chat-id route-params)})
|
||||
|
||||
(= handler :referrals)
|
||||
(cb (match-referral route-params))
|
||||
|
||||
|
|
|
@ -69,6 +69,10 @@
|
|||
(log/info "universal-links: handling community" community-id)
|
||||
(navigation/navigate-to-cofx cofx :community {:community-id community-id}))
|
||||
|
||||
(fx/defn handle-community-chat [cofx {:keys [chat-id]}]
|
||||
(log/info "universal-links: handling community chat" chat-id)
|
||||
(chat/navigate-to-chat cofx chat-id true))
|
||||
|
||||
(fx/defn handle-public-chat [cofx {:keys [topic]}]
|
||||
(log/info "universal-links: handling public chat" topic)
|
||||
(when (seq topic)
|
||||
|
@ -127,6 +131,7 @@
|
|||
:private-chat (handle-private-chat cofx data)
|
||||
:community-requests (handle-community-requests cofx data)
|
||||
:community (handle-community cofx data)
|
||||
:community-chat (handle-community-chat cofx data)
|
||||
:contact (handle-view-profile cofx data)
|
||||
:browser (handle-browse cofx data)
|
||||
:eip681 (handle-eip681 cofx data)
|
||||
|
|
Loading…
Reference in New Issue