Fixes #2296 - Set MarkdownContent instead of HTMLContent on the rich text editor when feature disabled

This commit is contained in:
Stefan Ceriu 2024-01-04 14:04:41 +02:00
parent b5be6639d1
commit 4e53c4f690
2 changed files with 7 additions and 1 deletions

View File

@ -245,7 +245,12 @@ final class ComposerToolbarViewModel: ComposerToolbarViewModelType, ComposerTool
private func set(text: String) {
wysiwygViewModel.textView.flushPills()
wysiwygViewModel.setHtmlContent(text)
if appSettings.richTextEditorEnabled {
wysiwygViewModel.setHtmlContent(text)
} else {
wysiwygViewModel.setMarkdownContent(text)
}
}
private func createLinkAlert() {

1
changelog.d/2296.bugfix Normal file
View File

@ -0,0 +1 @@
Trying to edit messages containing links with angle brackets doesn't pre-populate the message composer