Skip to content

Commit

Permalink
chore: use log effect in delete-message
Browse files Browse the repository at this point in the history
  • Loading branch information
seanstrom committed Jan 3, 2025
1 parent f6d494e commit dc46391
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
(ns status-im.contexts.chat.messenger.messages.delete-message.events
(:require
[status-im.contexts.chat.messenger.messages.list.events :as message-list]
[taoensso.timbre :as log]
[utils.datetime :as datetime]
[utils.i18n :as i18n]
[utils.re-frame :as rf]))
Expand Down Expand Up @@ -189,9 +188,10 @@

(defn delete-and-send-error
[_ [message-id error]]
(log/error "failed to delete message "
{:message-id message-id
:error error}))
{:fx [[:effects.log/error
["failed to delete message"
{:message-id message-id
:error error}]]]})

(rf/reg-event-fx :chat/delete-and-send-error delete-and-send-error)

Expand Down

0 comments on commit dc46391

Please sign in to comment.