mirror of
https://github.com/chatmail/core.git
synced 2026-04-22 16:06:30 +03:00
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:
@@ -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}'"
|
||||
));
|
||||
|
||||
Reference in New Issue
Block a user