Delivered messages have double-check icon in private chats

Signed-off-by: Volodymyr Kozieiev <vkjr.sp@gmail.com>
This commit is contained in:
Volodymyr Kozieiev 2021-02-23 18:17:15 +02:00
parent d5e1d3fe65
commit a383cfa39a
No known key found for this signature in database
GPG Key ID: 82B04968DF4C0535
6 changed files with 21 additions and 11 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 277 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 367 B

View File

@ -209,12 +209,17 @@
(chat-model/join-time-messages-checked-for-chats (keys grouped-messages)))))))
;;;; Send message
(fx/defn update-message-status
(fx/defn update-db-message-status
[{:keys [db] :as cofx} chat-id message-id status]
(fx/merge cofx
{:db (assoc-in db
[:messages chat-id message-id :outgoing-status]
status)}
status)}))
(fx/defn update-message-status
[{:keys [db] :as cofx} chat-id message-id status]
(fx/merge cofx
(update-db-message-status chat-id message-id status)
(data-store.messages/update-outgoing-status message-id status)))
(fx/defn resend-message

View File

@ -7,6 +7,7 @@
[status-im.transport.filters.core :as transport.filters]
[status-im.transport.message.core :as transport.message]
[status-im.notifications.local :as local-notifications]
[status-im.chat.models.message :as models.message]
[status-im.utils.fx :as fx]
[taoensso.timbre :as log]))
@ -54,6 +55,8 @@
"node.login" (status-node-started cofx (js->clj event-js :keywordize-keys true))
"envelope.sent" (transport.message/update-envelopes-status cofx (:ids (js->clj event-js :keywordize-keys true)) :sent)
"envelope.expired" (transport.message/update-envelopes-status cofx (:ids (js->clj event-js :keywordize-keys true)) :not-sent)
"message.delivered" (let [{:keys [chatID messageID] :as event-cljs} (js->clj event-js :keywordize-keys true)]
(models.message/update-db-message-status cofx chatID messageID :delivered))
"mailserver.request.completed" (mailserver/handle-request-completed cofx (js->clj event-js :keywordize-keys true))
"mailserver.request.expired" (when (multiaccounts.model/logged-in? cofx)
(mailserver/resend-request cofx {:request-id (.-hash event-js)}))

View File

@ -43,13 +43,15 @@
:align-items :flex-end})
(when (and outgoing justify-timestamp?)
[icons/icon (case outgoing-status
:sending :tiny-icons/tiny-pending
:sent :tiny-icons/tiny-sent
:not-sent :tiny-icons/tiny-warning
:sending :tiny-icons/tiny-pending
:sent :tiny-icons/tiny-sent
:not-sent :tiny-icons/tiny-warning
:delivered :tiny-icons/tiny-delivered
:tiny-icons/tiny-pending)
{:width 16
:height 12
:color colors/white}])
{:width 16
:height 12
:color colors/white
:accessibility-label (name outgoing-status)}])
[react/text {:style (style/message-timestamp-text outgoing)}
timestamp-str]]))

View File

@ -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.71.4",
"commit-sha1": "2c0383ec2286c644fe4425c04ad692f4fa0243fe",
"src-sha256": "1kvpzmkzarg8l5gq7dz7316f1bph3zh754crhc1mmd334919cn3h"
"version": "v0.71.5",
"commit-sha1": "da46a352925c105277f7d0953d077287d02c5c71",
"src-sha256": "041f9gvfpipanwwwwh395sv765ahvi1vx19hjw8p1qq4m59b4357"
}