mirror of
https://github.com/status-im/status-react.git
synced 2025-01-10 19:16:59 +00:00
[#10798] Fix unviewed counter on receiving response
This commit is contained in:
parent
ae3936eff2
commit
fac4f0c871
@ -128,7 +128,7 @@
|
|||||||
(= constants/message-type-one-to-one message-type) from))
|
(= constants/message-type-one-to-one message-type) from))
|
||||||
|
|
||||||
(fx/defn update-unviewed-count
|
(fx/defn update-unviewed-count
|
||||||
[{:keys [db] :as cofx} {:keys [chat-id from message-type message-id]}]
|
[{:keys [db] :as cofx} {:keys [chat-id from message-type message-id new?]}]
|
||||||
(when-not (= message-type constants/message-type-private-group-system-message)
|
(when-not (= message-type constants/message-type-private-group-system-message)
|
||||||
(let [{:keys [current-chat-id view-id]} db
|
(let [{:keys [current-chat-id view-id]} db
|
||||||
chat-view? (= :chat view-id)
|
chat-view? (= :chat view-id)
|
||||||
@ -142,7 +142,7 @@
|
|||||||
(fx/merge cofx
|
(fx/merge cofx
|
||||||
(data-store.messages/mark-messages-seen current-chat-id [message-id] nil))
|
(data-store.messages/mark-messages-seen current-chat-id [message-id] nil))
|
||||||
|
|
||||||
:else
|
new?
|
||||||
{:db (update-in db [:chats chat-id]
|
{:db (update-in db [:chats chat-id]
|
||||||
assoc
|
assoc
|
||||||
:unviewed-messages-count (inc current-count))}))))
|
:unviewed-messages-count (inc current-count))}))))
|
||||||
|
@ -24,7 +24,8 @@
|
|||||||
:clock :clock-value
|
:clock :clock-value
|
||||||
:quotedMessage :quoted-message
|
:quotedMessage :quoted-message
|
||||||
:outgoingStatus :outgoing-status
|
:outgoingStatus :outgoing-status
|
||||||
:audioDurationMs :audio-duration-ms})
|
:audioDurationMs :audio-duration-ms
|
||||||
|
:new :new?})
|
||||||
|
|
||||||
(update :quoted-message clojure.set/rename-keys {:parsedText :parsed-text})
|
(update :quoted-message clojure.set/rename-keys {:parsedText :parsed-text})
|
||||||
(update :outgoing-status keyword)
|
(update :outgoing-status keyword)
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
"_comment": "DO NOT EDIT THIS FILE BY HAND. USE 'scripts/update-status-go.sh <tag>' instead",
|
"_comment": "DO NOT EDIT THIS FILE BY HAND. USE 'scripts/update-status-go.sh <tag>' instead",
|
||||||
"owner": "status-im",
|
"owner": "status-im",
|
||||||
"repo": "status-go",
|
"repo": "status-go",
|
||||||
"version": "v0.63.6",
|
"version": "v0.63.7",
|
||||||
"commit-sha1": "d20cf2583f0721d809c2efe71450259c88981b4e",
|
"commit-sha1": "4026841dc1516865f385e0a6c2b57fead2aad773",
|
||||||
"src-sha256": "1dbiwbfw109ns4czpfqzmnll92xlqzyyc2swl693hrn67nzwymgp"
|
"src-sha256": "1sr9aaf9by2lzfphakqqpcir101zfgxa59wag2grsb2077k0gxj5"
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user