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,