fix: Fix formatting of messages with newlines

Newlines were previously not formatted correctly in HTML/markdown messages.
Formatting is of newlines is implemented in the matrix-dart-sdk, but
was explicitly disabled when creating the matrix Client object.
This fixes formatting by removing the parameter from the client config,
causing the client to follow the expected, default behavior.
This only affects outgoing new messages, both old wrongly formatted
messages and new messages are rendered correctly in FluffyChat.
New messages are now also correctly formatted in other clients.
This commit is contained in:
Philip Fritzsche 2026-03-02 16:10:33 +01:00
parent e53bb3de90
commit f6a96617c7
No known key found for this signature in database
GPG key ID: 95DCCE82D23CF6B2

View file

@ -138,7 +138,6 @@ abstract class ClientManager {
(share) => share.name == shareKeysWith,
) ??
ShareKeysWith.all,
convertLinebreaksInFormatting: false,
onSoftLogout: enableSoftLogout
? (client) => client.refreshAccessToken()
: null,