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 20, 2021
1 parent 6591611 commit bb7c61d
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.11",
"commit-sha1": "23308d7e8c4b7f5c85bffe870ba92010a3784dcb",
"src-sha256": "0zlbzys7g1v3sr67l7fq85mhsk58gkplx8ci7lr5imk9cbciarlx"
"version": "feat/#12531-sync-read-messages",
"commit-sha1": "46e3765f31dbb4284fd8ca82259a8d8f1522d11a",
"src-sha256": "1jgp963anmfs6kbv43i51cmpg7v3izwwiifggihk0fdml38kflln"
}

0 comments on commit bb7c61d

Please sign in to comment.