Skip to content
Snippets Groups Projects
Verified Commit a0b4ba10 authored by Janne Mareike Koschinski's avatar Janne Mareike Koschinski
Browse files

Allow just-whitespace messages

parent 3d112b91
No related branches found
No related tags found
No related merge requests found
......@@ -168,7 +168,7 @@ class ChatlineFragment : ServiceBoundFragment() {
}
fun send() {
if (chatline.safeText.isNotBlank()) {
if (chatline.safeText.isNotEmpty()) {
val lines = chatline.safeText.lineSequence().map {
SpannableString(it).apply {
for (span in getSpans(0, length, Any::class.java)) {
......@@ -225,7 +225,7 @@ class ChatlineFragment : ServiceBoundFragment() {
}
fun replaceText(text: CharSequence) {
if (chatline.safeText.isNotBlank()) {
if (chatline.safeText.isNotEmpty()) {
chatline.safeText.lineSequence().forEach(viewModel::addRecentlySentMessage)
}
editorHelper.replaceText(text)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment