|
142 | 142 | :accessibility-label :delete-transaction-button
|
143 | 143 | :on-press #(hide-sheet-and-dispatch [:chat.ui/delete-message chat-id message-id])}]]))
|
144 | 144 |
|
145 |
| -(defn message-long-press [{:keys [message-id content identicon from]}] |
| 145 | +(defn message-long-press [{:keys [message-id content identicon from outgoing]}] |
146 | 146 | (fn []
|
147 | 147 | (let [{:keys [ens-name alias]} @(re-frame/subscribe [:contacts/contact-name-by-identity from])]
|
148 | 148 | [react/view
|
149 |
| - [list-item/list-item |
150 |
| - {:theme :action |
151 |
| - :icon (multiaccounts/displayed-photo {:identicon identicon |
152 |
| - :public-key from}) |
153 |
| - :title [view-profile {:name (or ens-name alias) |
154 |
| - :helper :t/view-profile}] |
155 |
| - :accessibility-label :view-chat-details-button |
156 |
| - :accessories [:chevron] |
157 |
| - :on-press #(hide-sheet-and-dispatch [:chat.ui/show-profile from])}] |
| 149 | + (when-not outgoing |
| 150 | + [list-item/list-item |
| 151 | + {:theme :action |
| 152 | + :icon (multiaccounts/displayed-photo {:identicon identicon |
| 153 | + :public-key from}) |
| 154 | + :title [view-profile {:name (or ens-name alias) |
| 155 | + :helper :t/view-profile}] |
| 156 | + :accessibility-label :view-chat-details-button |
| 157 | + :accessories [:chevron] |
| 158 | + :on-press #(hide-sheet-and-dispatch [:chat.ui/show-profile from])}]) |
158 | 159 | [list-item/list-item
|
159 | 160 | {:theme :action
|
160 | 161 | :title :t/message-reply
|
|
179 | 180 | (defn sticker-long-press [{:keys [from identicon]}]
|
180 | 181 | (fn []
|
181 | 182 | (let [{:keys [ens-name alias]} @(re-frame/subscribe [:contacts/contact-name-by-identity from])]
|
182 |
| - [react/view |
183 |
| - [list-item/list-item |
184 |
| - {:theme :action |
185 |
| - :icon (multiaccounts/displayed-photo {:identicon identicon |
186 |
| - :public-key from}) |
187 |
| - :title [view-profile {:name (or ens-name alias) |
188 |
| - :helper :t/view-profile}] |
189 |
| - :accessibility-label :view-chat-details-button |
190 |
| - :accessories [:chevron] |
191 |
| - :on-press #(hide-sheet-and-dispatch [:chat.ui/show-profile from])}]]))) |
| 183 | + [react/view |
| 184 | + [list-item/list-item |
| 185 | + {:theme :action |
| 186 | + :icon (multiaccounts/displayed-photo {:identicon identicon |
| 187 | + :public-key from}) |
| 188 | + :title [view-profile {:name (or ens-name alias) |
| 189 | + :helper :t/view-profile}] |
| 190 | + :accessibility-label :view-chat-details-button |
| 191 | + :accessories [:chevron] |
| 192 | + :on-press #(hide-sheet-and-dispatch [:chat.ui/show-profile from])}]]))) |
0 commit comments