mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-03 06:55:41 +00:00
Send markdown (not rendered yet in the timeline).
This commit is contained in:
committed by
Benoit Marty
parent
a0c753a85c
commit
1a93ddac15
+1
-1
@@ -213,7 +213,7 @@ class RichTextComposerLayout @JvmOverloads constructor(
|
|||||||
}
|
}
|
||||||
|
|
||||||
views.sendButton.setOnClickListener {
|
views.sendButton.setOnClickListener {
|
||||||
val textMessage = text?.toSpannable() ?: ""
|
val textMessage = views.richTextComposerEditText.getMarkdown() // text?.toSpannable() ?: ""
|
||||||
callback?.onSendMessage(textMessage)
|
callback?.onSendMessage(textMessage)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+1
-2
@@ -39,8 +39,7 @@ fun TextComposer(
|
|||||||
}
|
}
|
||||||
|
|
||||||
override fun onSendMessage(text: CharSequence) {
|
override fun onSendMessage(text: CharSequence) {
|
||||||
// TODO The Wysiwyg team is working to be able to get a markdown version of the text
|
// text contains markdown.
|
||||||
// For now we send only the plain text. `formattedText` is Html.
|
|
||||||
onSendMessage(text.toString())
|
onSendMessage(text.toString())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user