We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0479ce2 commit a51afc0Copy full SHA for a51afc0
src/components/RoomCard/index.tsx
@@ -147,7 +147,9 @@ const RoomCard = ({ room, onClickAction }: RoomCardProps) => {
147
{!isLastMessageBySelfUser && room.groupName
148
? `${room.lastMessage?.user.name}: `
149
: ""}
150
- {room.lastMessage?.text}
+ {room.lastMessage?.text &&
151
+ room.lastMessage.text.slice(0, 25) +
152
+ (room.lastMessage.text.length > 25 ? "..." : "")}
153
</MessageText>
154
)}
155
</View>
0 commit comments