Fixed overlay bug

Signed-off-by: rapterjet2004 <juliuslinus1@gmail.com>
This commit is contained in:
rapterjet2004 2024-12-09 10:42:02 -06:00 committed by Marcel Hibbe
parent cbce4e9cd4
commit 1c108c94f7
No known key found for this signature in database
GPG Key ID: C793F8B59F43CE7B

View File

@ -284,7 +284,8 @@ class MessageInputFragment : Fragment() {
} }
binding.fragmentMessageInputView.attachmentButton.visibility = View.VISIBLE binding.fragmentMessageInputView.attachmentButton.visibility = View.VISIBLE
binding.fragmentMessageInputView.recordAudioButton.visibility = View.VISIBLE binding.fragmentMessageInputView.recordAudioButton.visibility =
if (binding.fragmentMessageInputView.inputEditText.text.isEmpty()) View.VISIBLE else View.GONE
} else { } else {
binding.fragmentMessageInputView.attachmentButton.visibility = View.INVISIBLE binding.fragmentMessageInputView.attachmentButton.visibility = View.INVISIBLE
binding.fragmentMessageInputView.recordAudioButton.visibility = View.INVISIBLE binding.fragmentMessageInputView.recordAudioButton.visibility = View.INVISIBLE
@ -562,7 +563,7 @@ class MessageInputFragment : Fragment() {
} else { } else {
chatActivity.chatViewModel.stopAndSendAudioRecording( chatActivity.chatViewModel.stopAndSendAudioRecording(
chatActivity.roomToken, chatActivity.roomToken,
chatActivity.currentConversation!!.displayName!!, chatActivity.currentConversation!!.displayName,
VOICE_MESSAGE_META_DATA VOICE_MESSAGE_META_DATA
) )
} }
@ -841,7 +842,7 @@ class MessageInputFragment : Fragment() {
if (token == "") room = chatActivity.roomToken else room = token if (token == "") room = chatActivity.roomToken else room = token
chatActivity.chatViewModel.uploadFile(fileUri, room, chatActivity.currentConversation!!.displayName!!, metaData) chatActivity.chatViewModel.uploadFile(fileUri, room, chatActivity.currentConversation!!.displayName, metaData)
} }
private fun submitMessage(sendWithoutNotification: Boolean) { private fun submitMessage(sendWithoutNotification: Boolean) {