[#12418] Error when declining membership request
Signed-off-by: andrey <motor4ik@gmail.com>
This commit is contained in:
parent
8298c35db2
commit
1f38423723
|
@ -176,6 +176,7 @@
|
||||||
"before processing we want to filter and sort messages, so we can process first only messages which will be showed"
|
"before processing we want to filter and sort messages, so we can process first only messages which will be showed"
|
||||||
{:events [:sanitize-messages-and-process-response]}
|
{:events [:sanitize-messages-and-process-response]}
|
||||||
[{:keys [db] :as cofx} ^js response-js process-async]
|
[{:keys [db] :as cofx} ^js response-js process-async]
|
||||||
|
(when response-js
|
||||||
(let [current-chat-id (:current-chat-id db)
|
(let [current-chat-id (:current-chat-id db)
|
||||||
{:keys [db messages transactions chats statuses]}
|
{:keys [db messages transactions chats statuses]}
|
||||||
(reduce group-by-and-update-unviewed-counts
|
(reduce group-by-and-update-unviewed-counts
|
||||||
|
@ -191,7 +192,7 @@
|
||||||
(when (seq transactions)
|
(when (seq transactions)
|
||||||
(for [transaction-hash transactions]
|
(for [transaction-hash transactions]
|
||||||
{:ms 100 :dispatch [:watch-tx transaction-hash]})))}
|
{:ms 100 :dispatch [:watch-tx transaction-hash]})))}
|
||||||
(process-response response-js process-async))))
|
(process-response response-js process-async)))))
|
||||||
|
|
||||||
(fx/defn remove-hash
|
(fx/defn remove-hash
|
||||||
[{:keys [db]} envelope-hash]
|
[{:keys [db]} envelope-hash]
|
||||||
|
|
Loading…
Reference in New Issue