From 86f51ceafc577cf69aa46889f1cc440eda4a0a67 Mon Sep 17 00:00:00 2001 From: Lungu Cristian Date: Tue, 16 Apr 2024 14:47:18 +0200 Subject: [PATCH] fix: community permission context not passing community-id --- .../contact_requests/bottom_drawer/view.cljs | 27 ++++++++++--------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/src/status_im/contexts/chat/messenger/messages/contact_requests/bottom_drawer/view.cljs b/src/status_im/contexts/chat/messenger/messages/contact_requests/bottom_drawer/view.cljs index 8a7764f46204..8beace59040b 100644 --- a/src/status_im/contexts/chat/messenger/messages/contact_requests/bottom_drawer/view.cljs +++ b/src/status_im/contexts/chat/messenger/messages/contact_requests/bottom_drawer/view.cljs @@ -10,23 +10,24 @@ (defn view [{:keys [contact-id]}] - (let [customization-color (rf/sub [:profile/customization-color]) - [primary-name _] (rf/sub [:contacts/contact-two-names-by-identity - contact-id]) - {:keys [contact-request-state]} (rf/sub [:chats/current-chat-chat-view]) - chat-type (rf/sub [:chats/chat-type]) - contact-request-send? (or (not contact-request-state) - (= contact-request-state - constants/contact-request-state-none)) - contact-request-received? (= contact-request-state - constants/contact-request-state-received) - contact-request-pending? (= contact-request-state - constants/contact-request-state-sent)] + (let [customization-color (rf/sub [:profile/customization-color]) + [primary-name _] (rf/sub [:contacts/contact-two-names-by-identity + contact-id]) + {:keys [contact-request-state community-id]} (rf/sub [:chats/current-chat-chat-view]) + chat-type (rf/sub [:chats/chat-type]) + contact-request-send? (or (not contact-request-state) + (= contact-request-state + constants/contact-request-state-none)) + contact-request-received? (= contact-request-state + constants/contact-request-state-received) + contact-request-pending? (= contact-request-state + constants/contact-request-state-sent)] [rn/view {:style style/container} [quo/permission-context {:blur? true :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])) :type :action :action-icon (cond