fix store-event cofx position
Signed-off-by: yenda <eric@status.im>
This commit is contained in:
parent
bbc85e77a8
commit
965381f376
|
@ -73,7 +73,7 @@
|
||||||
(then #(log/debug "Notification channel created:" channel-id)
|
(then #(log/debug "Notification channel created:" channel-id)
|
||||||
#(log/error "Notification channel creation error:" 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])
|
(let [{:keys [address photo-path name]} (->> (get-in cofx [:db :accounts/accounts])
|
||||||
vals
|
vals
|
||||||
(filter #(= (:public-key %) to))
|
(filter #(= (:public-key %) to))
|
||||||
|
@ -92,7 +92,7 @@
|
||||||
(fx/merge cofx
|
(fx/merge cofx
|
||||||
{:db (update db :push-notifications/stored dissoc to)}
|
{:db (update db :push-notifications/stored dissoc to)}
|
||||||
(chat-model/navigate-to-chat from nil)))
|
(chat-model/navigate-to-chat from nil)))
|
||||||
(store-event event cofx))))
|
(store-event cofx event))))
|
||||||
|
|
||||||
(defn parse-notification-payload [s]
|
(defn parse-notification-payload [s]
|
||||||
(try
|
(try
|
||||||
|
|
Loading…
Reference in New Issue