Skip to content

Commit

Permalink
[#12531 pairing] Sync read messages
Browse files Browse the repository at this point in the history
  • Loading branch information
rasom committed Oct 12, 2021
1 parent f50dcf5 commit 86ef583
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
10 changes: 7 additions & 3 deletions src/status_im/transport/message/core.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,16 @@
(js-delete response-js "chats")
(fx/merge cofx
(process-next response-js sync-handler)
(models.chat/ensure-chats (map #(-> %
(data-store.chats/<-rpc)
(models.chat/ensure-chats (map #(let [chat (data-store.chats/<-rpc %)]
(cond-> chat
;; We dissoc this fields as they are handled by status-react and
;; not status-go, as there might be requests in-flight that change
;; this value
(dissoc :unviewed-messages-count :unviewed-mentions-count))
(not (zero? (:unviewed-messages-count chat)))
(dissoc :unviewed-messages-count)

(not (zero? (:unviewed-mentions-count chat)))
(dissoc :unviewed-mentions-count)))
(types/js->clj chats)))))

(seq messages)
Expand Down
6 changes: 3 additions & 3 deletions status-go-version.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"_comment": "Instead use: scripts/update-status-go.sh <rev>",
"owner": "status-im",
"repo": "status-go",
"version": "v0.89.10",
"commit-sha1": "75aebd94aba4bdc45dcda96188aa9c8533facdca",
"src-sha256": "1p2vkj00j9m64cd1fhaa12657qxrz4ramshh1g4qm3c1yjkk3091"
"version": "feat/#12531-sync-read-messages",
"commit-sha1": "45f61224daff1c35958d6997318c022280a3b8a0",
"src-sha256": "05wg9xk7kd7jxpj90b0jbiqmwrm778jz8v470w5aa73a5bmw4ar3"
}

0 comments on commit 86ef583

Please sign in to comment.