From 965381f3766d44a8a8234937a5accd795b4d0429 Mon Sep 17 00:00:00 2001 From: yenda Date: Fri, 28 Sep 2018 15:04:13 +0200 Subject: [PATCH] fix store-event cofx position Signed-off-by: yenda --- src/status_im/notifications/core.cljs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/status_im/notifications/core.cljs b/src/status_im/notifications/core.cljs index 26bf785354..f794913707 100644 --- a/src/status_im/notifications/core.cljs +++ b/src/status_im/notifications/core.cljs @@ -73,7 +73,7 @@ (then #(log/debug "Notification channel created:" channel-id) #(log/error "Notification channel creation error:" channel-id %))))) - (fx/defn store-event [{:keys [from to]} {:keys [db] :as cofx}] + (fx/defn store-event [{:keys [db] :as cofx} {:keys [from to]}] (let [{:keys [address photo-path name]} (->> (get-in cofx [:db :accounts/accounts]) vals (filter #(= (:public-key %) to)) @@ -92,7 +92,7 @@ (fx/merge cofx {:db (update db :push-notifications/stored dissoc to)} (chat-model/navigate-to-chat from nil))) - (store-event event cofx)))) + (store-event cofx event)))) (defn parse-notification-payload [s] (try