From c2268647e7ad11f5451f337cf5275e4a7c7fecf0 Mon Sep 17 00:00:00 2001 From: Volodymyr Kozieiev Date: Wed, 12 Apr 2023 15:58:31 +0100 Subject: [PATCH] wip --- .../contexts/chat/home/chat_list_item/view.cljs | 15 +++++++++++---- status-go-version.json | 4 ++-- translations/en.json | 2 ++ 3 files changed, 15 insertions(+), 6 deletions(-) diff --git a/src/status_im2/contexts/chat/home/chat_list_item/view.cljs b/src/status_im2/contexts/chat/home/chat_list_item/view.cljs index 4022355e481a..6c5ecbc78aa8 100644 --- a/src/status_im2/contexts/chat/home/chat_list_item/view.cljs +++ b/src/status_im2/contexts/chat/home/chat_list_item/view.cljs @@ -9,7 +9,8 @@ [status-im2.constants :as constants] [taoensso.timbre :as log] [reagent.core :as reagent] - [utils.i18n :as i18n])) + [utils.i18n :as i18n] + [status-im2.contexts.chat.messages.content.album.view :as album])) ;status-im2.subs.chat.chats @@ -59,7 +60,7 @@ (rf/dispatch [:pin-message/load-pin-messages chat-id])) :reagent-render - (fn [chat-id {:keys [content-type content outgoing] :as message}] + (fn [chat-id {:keys [content-type content outgoing album-images-count] :as message}] (let [{:keys [response-to]} content content-text (extract-text-from-message message) preview-text (case content-type @@ -87,8 +88,14 @@ constants/content-type-image (if outgoing - (i18n/label :t/you-sent-a-photo) - (i18n/label :t/sent-a-photo)) + (if album-images-count + (i18n/label :t/you-sent-n-photos {:number album-images-count}) + (i18n/label :t/you-sent-a-photo)) + + (if album-images-count + (i18n/label :t/sent-n-photos {:number album-images-count}) + (i18n/label :t/sent-a-photo))) + constants/content-type-audio (if outgoing diff --git a/status-go-version.json b/status-go-version.json index 5429d4c3623a..868d34c9929e 100644 --- a/status-go-version.json +++ b/status-go-version.json @@ -4,6 +4,6 @@ "owner": "status-im", "repo": "status-go", "version": "chat_preview_fields", - "commit-sha1": "07c7adf8eb41d9fcf34564c97b130d58626b297b", - "src-sha256": "0g73zj9ilsj5lfq7005ldx4avvidkcbj9x36b7lr1j1zwcmhlf05" + "commit-sha1": "dc27f49857ee8589f82af3009623b7abeba230a6", + "src-sha256": "1sm8k86ff90705lja4k8v5j7idhvak9z2wqnjbk7h3m8iwbcxifc" } diff --git a/translations/en.json b/translations/en.json index af2119cb24bb..f4de51601488 100644 --- a/translations/en.json +++ b/translations/en.json @@ -2064,6 +2064,8 @@ "sent-a-sticker": "Sent a sticker", "you-sent-a-photo": "You sent a photo", "sent-a-photo": "Sent a photo", + "you-sent-n-photos": "You sent {{number}} photos", + "sent-n-photos": "Sent {{number}} photos", "you-sent-audio-message": "You sent an audio message", "sent-audio-message": "Sent an audio message", "you-sent-a-gif": "You sent a GIF",