Skip to content

Commit 7924b1b

Browse files
committed
Fix newline issues
1 parent f941b1f commit 7924b1b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/screens/nip17-chat/historyListItem.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ export const HistoryListItem: React.FC<HistoryListItemProps> = ({
129129
(profileMap?.get(lastRumor.pubkey) as NostrProfile)?.username ||
130130
nip19.npubEncode(lastRumor.pubkey).slice(0, 9) + "..."}
131131
{": "}
132-
{lastRumor.content.slice(0, 55)}
132+
{lastRumor.content.replace(/\s+/g, " ").slice(0, 55)}
133133
{lastRumor.content.length > 45 ? "..." : ""}
134134
</Text>
135135
</View>

0 commit comments

Comments
 (0)