From 356dd891470b100f88ea67341b0afe83d89abb11 Mon Sep 17 00:00:00 2001 From: Roman Volosovskyi Date: Mon, 13 Dec 2021 13:52:59 +0200 Subject: [PATCH] [#12898] Fix endless loading in pubchats --- src/status_im/mailserver/core.cljs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/status_im/mailserver/core.cljs b/src/status_im/mailserver/core.cljs index 76421d1dab..d8a824e315 100644 --- a/src/status_im/mailserver/core.cljs +++ b/src/status_im/mailserver/core.cljs @@ -184,8 +184,9 @@ (fx/defn handle-successful-request {:events [::request-success]} - [{:keys [db]} response-js] - {:db (dissoc db :mailserver/current-request)}) + [{:keys [db] :as cofx} response-js] + {:db (dissoc db :mailserver/current-request) + :dispatch [:sanitize-messages-and-process-response response-js]}) (fx/defn process-next-messages-request {:events [::request-messages]}