Skip to content

Commit

Permalink
Fixes #2296 - Set MarkdownContent instead of HTMLContent on the rich …
Browse files Browse the repository at this point in the history
…text editor when feature disabled
  • Loading branch information
stefanceriu committed Jan 8, 2024
1 parent b5be663 commit 4e53c4f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
1 change: 1 addition & 0 deletions changelog.d/2296.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Trying to edit messages containing links with angle brackets doesn't pre-populate the message composer

0 comments on commit 4e53c4f

Please sign in to comment.