fix: Make newlines work in chat descriptions (#8012)

This fixes a bug: If there is a multi-line chat description, only the
first line was shown on recipient devices.

Credits to @lk108 for noticing!
This commit is contained in:
Hocuri
2026-03-21 14:48:56 +01:00
committed by GitHub
parent bdc9e7ce56
commit 5d06ca3c8e
2 changed files with 7 additions and 2 deletions

View File

@@ -3335,7 +3335,12 @@ async fn test_chat_description(
initial_description
);
for description in ["This is a cool chat", "", "ä ẟ 😂"] {
for description in [
&"This<>is 'a' \"cool\" chat:/\\|?*".repeat(50),
"multiple\nline\n\nbreaks\n\n\r\n.",
"",
"ä ẟ 😂",
] {
tcm.section(&format!(
"Alice sets the chat description to '{description}'"
));