Skip to content

Commit

Permalink
Added message ellipsis to message list
Browse files Browse the repository at this point in the history
  • Loading branch information
f-r00t committed Feb 26, 2024
1 parent 2d6b1fc commit 86bcc6c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Groups.js
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ export class GroupsScreenNoTranslation extends React.Component {
renderItem={({item}) => (
<ListItem
title={item.group}
subtitle={item.lastMessage ? <Text><Text style={{fontFamily: 'Montserrat-SemiBold'}}>{item.lastMessageNickname ? item.lastMessageNickname : t('Anonymous')}</Text><Text style={{fontFamily: 'Montserrat-Regular'}}>{" " + item.lastMessage}{"\n"}</Text><Moment locale={Globals.language} style={{fontFamily: "Montserrat-Regular", fontSize: 10, textAlignVertical: 'bottom' }} element={Text} unix fromNow>{item.lastMessageTimestamp/1000}</Moment></Text> : t('noMessages')}
subtitle={item.lastMessage ? <View><Text style={{fontFamily: 'Montserrat-SemiBold'}}>{item.lastMessageNickname ? item.lastMessageNickname : t('Anonymous')}</Text><Text ellipsizeMode='tail' numberOfLines={1} style={{fontFamily: 'Montserrat-Regular'}}>{item.lastMessage}{"\n"}</Text><Moment locale={Globals.language} style={{fontFamily: "Montserrat-Regular", fontSize: 10, textAlignVertical: 'bottom' }} element={Text} unix fromNow>{item.lastMessageTimestamp/1000}</Moment></View> : t('noMessages')}
chevron={item.read == '1' ? false : newMessageIndicator }
leftIcon={
<Image
Expand Down
2 changes: 1 addition & 1 deletion src/Recipients.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ export class RecipientsScreenNoTranslation extends React.Component {
renderItem={({item}) => (
<ListItem
title={item.nickname}
subtitle={item.lastMessage ? <Text><Text style={{fontFamily: 'Montserrat-Regular'}}>{item.lastMessage}{"\n"}</Text><Moment locale={Globals.language} style={{fontFamily: "Montserrat-Regular", fontSize: 10, textAlignVertical: 'bottom' }} element={Text} unix fromNow>{item.lastMessageTimestamp/1000}</Moment></Text> : t('noMessages')}
subtitle={item.lastMessage ? <View><Text numberOfLines={1} style={{fontFamily: 'Montserrat-Regular'}}>{item.lastMessage}{"\n"}</Text><Moment locale={Globals.language} style={{fontFamily: "Montserrat-Regular", fontSize: 10, textAlignVertical: 'bottom' }} element={Text} unix fromNow>{item.lastMessageTimestamp/1000}</Moment></View> : t('noMessages')}
subtitleStyle={{
fontFamily: "Montserrat-Regular"
}}
Expand Down

0 comments on commit 86bcc6c

Please sign in to comment.