Send markdown (not rendered yet in the timeline).

This commit is contained in:
Benoit Marty 2022-11-25 16:14:51 +01:00 committed by Benoit Marty
parent a0c753a85c
commit 1a93ddac15
2 changed files with 2 additions and 3 deletions

View file

@ -213,7 +213,7 @@ class RichTextComposerLayout @JvmOverloads constructor(
}
views.sendButton.setOnClickListener {
val textMessage = text?.toSpannable() ?: ""
val textMessage = views.richTextComposerEditText.getMarkdown() // text?.toSpannable() ?: ""
callback?.onSendMessage(textMessage)
}

View file

@ -39,8 +39,7 @@ fun TextComposer(
}
override fun onSendMessage(text: CharSequence) {
// TODO The Wysiwyg team is working to be able to get a markdown version of the text
// For now we send only the plain text. `formattedText` is Html.
// text contains markdown.
onSendMessage(text.toString())
}