From 575ac5666a0e0cd9acff6ce6310d127bff328e17 Mon Sep 17 00:00:00 2001 From: Quffik <8903maks127@gmail.com> Date: Mon, 20 Jul 2026 18:52:57 +0300 Subject: [PATCH] Refactor: Remove convertLinebreaksInFormatting to support line breaks --- lib/pages/chat/send_file_dialog.dart | 4 ---- lib/utils/client_manager.dart | 1 - 2 files changed, 5 deletions(-) diff --git a/lib/pages/chat/send_file_dialog.dart b/lib/pages/chat/send_file_dialog.dart index 7f8ced8d0..f8bf1f124 100644 --- a/lib/pages/chat/send_file_dialog.dart +++ b/lib/pages/chat/send_file_dialog.dart @@ -60,9 +60,6 @@ class SendFileDialogState extends State { Future _send() async { final scaffoldMessenger = ScaffoldMessenger.of(widget.outerContext); final l10n = L10n.of(context); - final convertLinebreaks = Matrix.of( - context, - ).client.convertLinebreaksInFormatting; try { setState(() { @@ -162,7 +159,6 @@ class SendFileDialogState extends State { getEmotePacks: () => widget.room.getImagePacksFlat(ImagePackUsage.emoticon), getMention: widget.room.getMention, - convertLinebreaks: convertLinebreaks, ); // if the decoded html is the same as the body, there is no need in sending a formatted message diff --git a/lib/utils/client_manager.dart b/lib/utils/client_manager.dart index da7fb26bc..df4a85b8c 100644 --- a/lib/utils/client_manager.dart +++ b/lib/utils/client_manager.dart @@ -148,7 +148,6 @@ abstract class ClientManager { shareKeysWith: .values.singleWhereOrNull((share) => share.name == shareKeysWith) ?? .crossVerifiedIfEnabled, - convertLinebreaksInFormatting: false, onSoftLogout: enableSoftLogout ? (client) => client.refreshAccessToken() : null,