mirror of
https://github.com/status-im/status-react.git
synced 2025-01-24 18:00:45 +00:00
Fix for red screen on login
Former-commit-id: fcf44737a4ed7759b68ce8f7ac9e4b6390466fc3
This commit is contained in:
parent
321935e8ca
commit
87159dca7e
@ -207,12 +207,10 @@
|
||||
|
||||
(defn reset-pending-messages! [to]
|
||||
(doseq [key (@recipient->pending-message to)]
|
||||
(swap! messages
|
||||
(fn [messages]
|
||||
(when (get-in messages key)
|
||||
(update-in messages key assoc
|
||||
:last-attempt 0
|
||||
:attempts 0))))))
|
||||
(when (get-in @messages key)
|
||||
(swap! messages #(update-in % key assoc
|
||||
:last-attempt 0
|
||||
:attempts 0)))))
|
||||
|
||||
(defn reset-all-pending-messages! []
|
||||
(reset! messages {}))
|
||||
|
Loading…
x
Reference in New Issue
Block a user