Fixed empty bubble when shared file is considered as plain/text

This commit is contained in:
Sylvain Berfini 2024-04-04 16:10:29 +02:00
parent 1ae85611bf
commit 561216320f
2 changed files with 4 additions and 2 deletions

View file

@ -329,7 +329,7 @@ class MessageModel @WorkerThread constructor(
parseConferenceInvite(content)
displayableContentFound = true
} else if (content.isText) {
} else if (content.isText && !content.isFile) {
Log.d("$TAG Found plain text content")
computeTextContent(content)
@ -416,7 +416,7 @@ class MessageModel @WorkerThread constructor(
Log.e("$TAG No name found for FileTransfer Content!")
}
} else {
Log.i("$TAG Content is not a File")
Log.w("$TAG Content [${content.name}] is not a File")
}
}
}

View file

@ -48,9 +48,11 @@
<ScrollView
android:id="@+id/text"
android:onClick="@{() -> viewModel.toggleFullScreen()}"
android:background="?attr/color_main2_000"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fillViewport="true"
android:visibility="@{viewModel.isText ? View.VISIBLE : View.GONE, default=gone}" >
<TextView