File tree 1 file changed +8
-1
lines changed
src/status_im2/contexts/chat/messages/list
1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 9
9
[react-native.platform :as platform]
10
10
[react-native.reanimated :as reanimated]
11
11
[reagent.core :as reagent]
12
+ [status-im.utils.core :as utils]
12
13
[status-im.ui.screens.chat.group :as chat.group]
13
14
[status-im.ui.screens.chat.message.gap :as message.gap]
14
15
[status-im2.constants :as constants]
189
190
(rf/dispatch [:pin-message/show-pins-bottom-sheet
190
191
chat-id]))}]}]))
191
192
193
+ (defn- truncate-display-name
194
+ [chat-name]
195
+ (if platform/android?
196
+ (utils/truncate-str chat-name 22 )
197
+ chat-name))
198
+
192
199
(defn f-list-footer
193
200
[{:keys [chat scroll-y cover-bg-color on-layout]}]
194
201
(let [{:keys [chat-id chat-name emoji chat-type
229
236
:size :heading-1
230
237
:style {:margin-top (if group-chat 54 12 )}
231
238
:number-of-lines 1 }
232
- display-name
239
+ ( truncate- display-name display-name)
233
240
[contact-icon contact]]]
234
241
(when bio
235
242
[quo/text {:style style/bio}
You can’t perform that action at this time.
0 commit comments