Skip to content

Commit

Permalink
fix: no ring in long-press selected message
Browse files Browse the repository at this point in the history
fix #17510
  • Loading branch information
yqrashawn committed Oct 6, 2023
1 parent 933a5a1 commit 9a2c0e4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/status_im2/contexts/chat/messages/avatar/view.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
[utils.re-frame :as rf]))

(defn avatar
[public-key size]
[{:keys [public-key size hide-ring?]}]
(let [display-name (first (rf/sub [:contacts/contact-two-names-by-identity public-key]))
photo-path (rf/sub [:chats/photo-path public-key])
online? (rf/sub [:visibility-status-updates/online? public-key])]
Expand All @@ -14,6 +14,7 @@
:on-press #(rf/dispatch [:chat.ui/show-profile public-key])}
[quo/user-avatar
{:full-name display-name
:ring? (not hide-ring?)
:profile-picture photo-path
:online? online?
:size size}]]]))
5 changes: 3 additions & 2 deletions src/status_im2/contexts/chat/messages/content/view.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,15 @@
(def delivery-state-showing-time-ms 3000)

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

(defn author
Expand Down

0 comments on commit 9a2c0e4

Please sign in to comment.