[#12936] Add accessibility-id to message timestamp

This commit is contained in:
Roman Volosovskyi 2021-12-27 13:44:12 +02:00
parent ffba396e4d
commit cd86a1065b
No known key found for this signature in database
GPG Key ID: 0238A4B5ECEE70DE

View File

@ -80,7 +80,9 @@
(let [anim-opacity (animation/create-value 0)] (let [anim-opacity (animation/create-value 0)]
[react/animated-view {:style (style/message-timestamp-wrapper message) :opacity anim-opacity} [react/animated-view {:style (style/message-timestamp-wrapper message) :opacity anim-opacity}
(when @show-timestamp? (message-timestamp-anim anim-opacity show-timestamp?)) (when @show-timestamp? (message-timestamp-anim anim-opacity show-timestamp?))
[react/text {:style (style/message-timestamp-text)} [react/text
{:style (style/message-timestamp-text)
:accessibility-label :message-timestamp}
timestamp-str]]))) timestamp-str]])))
(defview quoted-message (defview quoted-message