Skip to content

Commit

Permalink
fix: no ident ring for message user-avatar in pinned view
Browse files Browse the repository at this point in the history
fix #17525
  • Loading branch information
yqrashawn committed Oct 6, 2023
1 parent 9a2c0e4 commit 1137521
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/status_im2/contexts/chat/messages/content/view.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,14 @@

(defn avatar-container
[{:keys [content last-in-group? pinned-by quoted-message from]} show-reactions?
show-user-info?]
show-user-info? in-pinned-view?]
(if (or (and (seq (:response-to content))
quoted-message)
last-in-group?
pinned-by
(not show-reactions?)
show-user-info?)
[avatar/avatar {:public-key from :size :small :hide-ring? show-user-info?}]
[avatar/avatar {:public-key from :size :small :hide-ring? (or in-pinned-view? show-user-info?)}]
[rn/view {:padding-top 4 :width 32}]))

(defn author
Expand Down Expand Up @@ -164,7 +164,7 @@
[rn/view
{:style {:padding-horizontal 4
:flex-direction :row}}
[avatar-container message-data show-reactions? show-user-info?]
[avatar-container message-data show-reactions? show-user-info? (:in-pinned-view? context)]
(into
(if show-reactions?
[rn/view]
Expand Down

0 comments on commit 1137521

Please sign in to comment.