fix store-event cofx position

Signed-off-by: yenda <eric@status.im>
This commit is contained in:
yenda 2018-09-28 15:04:13 +02:00
parent bbc85e77a8
commit 965381f376
No known key found for this signature in database
GPG Key ID: 0095623C0069DCE6
1 changed files with 2 additions and 2 deletions

View File

@ -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