Skip to content

Commit

Permalink
Fixed overlay bug
Browse files Browse the repository at this point in the history
Signed-off-by: rapterjet2004 <[email protected]>
  • Loading branch information
rapterjet2004 authored and AndyScherzinger committed Dec 16, 2024
1 parent ce285ee commit 6a8116e
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,8 @@ class MessageInputFragment : Fragment() {
}

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 {
binding.fragmentMessageInputView.attachmentButton.visibility = View.INVISIBLE
binding.fragmentMessageInputView.recordAudioButton.visibility = View.INVISIBLE
Expand Down Expand Up @@ -550,7 +551,7 @@ class MessageInputFragment : Fragment() {
} else {
chatActivity.chatViewModel.stopAndSendAudioRecording(
chatActivity.roomToken,
chatActivity.currentConversation!!.displayName!!,
chatActivity.currentConversation!!.displayName,
VOICE_MESSAGE_META_DATA
)
}
Expand Down Expand Up @@ -829,7 +830,7 @@ class MessageInputFragment : Fragment() {

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) {
Expand Down

0 comments on commit 6a8116e

Please sign in to comment.