From c96c2b44b427d89ad194735fcd6489664cdbb2f0 Mon Sep 17 00:00:00 2001 From: Brian Sztamfater Date: Mon, 2 Aug 2021 13:25:54 -0300 Subject: [PATCH] Fix pinned edited messages in communities Signed-off-by: Brian Sztamfater --- src/status_im/ui/screens/chat/sheets.cljs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/status_im/ui/screens/chat/sheets.cljs b/src/status_im/ui/screens/chat/sheets.cljs index 3b3d0ced62..76aee6e095 100644 --- a/src/status_im/ui/screens/chat/sheets.cljs +++ b/src/status_im/ui/screens/chat/sheets.cljs @@ -87,7 +87,9 @@ :subtitle (i18n/label :t/view-details) :chevron true :accessibility-label :view-community-channel-details - :on-press #(hide-sheet-and-dispatch [:navigate-to :community-channel-details {:chat-id chat-id}])}] + :on-press #(do + (hide-sheet-and-dispatch [:navigate-to :community-channel-details {:chat-id chat-id}]) + (re-frame/dispatch [::models.pin-message/load-pin-messages chat-id]))}] [quo/list-item {:theme :accent :title (i18n/label :t/mark-all-read)