[#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))
|
||||
|
||||
(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)
|
||||
(let [{:keys [current-chat-id view-id]} db
|
||||
chat-view? (= :chat view-id)
|
||||
|
@ -142,7 +142,7 @@
|
|||
(fx/merge cofx
|
||||
(data-store.messages/mark-messages-seen current-chat-id [message-id] nil))
|
||||
|
||||
:else
|
||||
new?
|
||||
{:db (update-in db [:chats chat-id]
|
||||
assoc
|
||||
:unviewed-messages-count (inc current-count))}))))
|
||||
|
|
|
@ -24,7 +24,8 @@
|
|||
:clock :clock-value
|
||||
:quotedMessage :quoted-message
|
||||
:outgoingStatus :outgoing-status
|
||||
:audioDurationMs :audio-duration-ms})
|
||||
:audioDurationMs :audio-duration-ms
|
||||
:new :new?})
|
||||
|
||||
(update :quoted-message clojure.set/rename-keys {:parsedText :parsed-text})
|
||||
(update :outgoing-status keyword)
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
"_comment": "DO NOT EDIT THIS FILE BY HAND. USE 'scripts/update-status-go.sh <tag>' instead",
|
||||
"owner": "status-im",
|
||||
"repo": "status-go",
|
||||
"version": "v0.63.6",
|
||||
"commit-sha1": "d20cf2583f0721d809c2efe71450259c88981b4e",
|
||||
"src-sha256": "1dbiwbfw109ns4czpfqzmnll92xlqzyyc2swl693hrn67nzwymgp"
|
||||
"version": "v0.63.7",
|
||||
"commit-sha1": "4026841dc1516865f385e0a6c2b57fead2aad773",
|
||||
"src-sha256": "1sr9aaf9by2lzfphakqqpcir101zfgxa59wag2grsb2077k0gxj5"
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue