diff --git a/src/status_im/chat/models/message.cljs b/src/status_im/chat/models/message.cljs index c195ca8c2d..4890502472 100644 --- a/src/status_im/chat/models/message.cljs +++ b/src/status_im/chat/models/message.cljs @@ -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))})))) diff --git a/src/status_im/data_store/messages.cljs b/src/status_im/data_store/messages.cljs index 00f33512c1..16eeb38fc7 100644 --- a/src/status_im/data_store/messages.cljs +++ b/src/status_im/data_store/messages.cljs @@ -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) diff --git a/status-go-version.json b/status-go-version.json index c91f62d876..b3190283e8 100644 --- a/status-go-version.json +++ b/status-go-version.json @@ -2,7 +2,7 @@ "_comment": "DO NOT EDIT THIS FILE BY HAND. USE 'scripts/update-status-go.sh ' 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" }