mirror of
https://github.com/status-im/status-mobile.git
synced 2025-02-05 13:25:43 +00:00
fix: community permission context not passing community-id (#19669)
Signed-off-by: Cristian Lungu <lungucristian95@gmail.com>
This commit is contained in:
parent
65b0d1cd17
commit
d8e3934a05
@ -10,23 +10,24 @@
|
|||||||
|
|
||||||
(defn view
|
(defn view
|
||||||
[{:keys [contact-id]}]
|
[{:keys [contact-id]}]
|
||||||
(let [customization-color (rf/sub [:profile/customization-color])
|
(let [customization-color (rf/sub [:profile/customization-color])
|
||||||
[primary-name _] (rf/sub [:contacts/contact-two-names-by-identity
|
[primary-name _] (rf/sub [:contacts/contact-two-names-by-identity
|
||||||
contact-id])
|
contact-id])
|
||||||
{:keys [contact-request-state]} (rf/sub [:chats/current-chat-chat-view])
|
{:keys [contact-request-state community-id]} (rf/sub [:chats/current-chat-chat-view])
|
||||||
chat-type (rf/sub [:chats/chat-type])
|
chat-type (rf/sub [:chats/chat-type])
|
||||||
contact-request-send? (or (not contact-request-state)
|
contact-request-send? (or (not contact-request-state)
|
||||||
(= contact-request-state
|
(= contact-request-state
|
||||||
constants/contact-request-state-none))
|
constants/contact-request-state-none))
|
||||||
contact-request-received? (= contact-request-state
|
contact-request-received? (= contact-request-state
|
||||||
constants/contact-request-state-received)
|
constants/contact-request-state-received)
|
||||||
contact-request-pending? (= contact-request-state
|
contact-request-pending? (= contact-request-state
|
||||||
constants/contact-request-state-sent)]
|
constants/contact-request-state-sent)]
|
||||||
[rn/view {:style style/container}
|
[rn/view {:style style/container}
|
||||||
[quo/permission-context
|
[quo/permission-context
|
||||||
{:blur? true
|
{:blur? true
|
||||||
:on-press (condp = chat-type
|
:on-press (condp = chat-type
|
||||||
:community-chat #(rf/dispatch [:navigate-to :community-account-selection])
|
:community-chat #(rf/dispatch [:open-modal :community-account-selection-sheet
|
||||||
|
{:community-id community-id}])
|
||||||
#(rf/dispatch [:chat.ui/show-profile contact-id]))
|
#(rf/dispatch [:chat.ui/show-profile contact-id]))
|
||||||
:type :action
|
:type :action
|
||||||
:action-icon (cond
|
:action-icon (cond
|
||||||
|
Loading…
x
Reference in New Issue
Block a user