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 backportbot[bot] committed Dec 10, 2024
1 parent 931a4c7 commit 5a78894
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,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 @@ -562,7 +563,7 @@ class MessageInputFragment : Fragment() {
} else {
chatActivity.chatViewModel.stopAndSendAudioRecording(
chatActivity.roomToken,
chatActivity.currentConversation!!.displayName!!,
chatActivity.currentConversation!!.displayName,
VOICE_MESSAGE_META_DATA
)
}
Expand Down Expand Up @@ -841,7 +842,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 5a78894

Please sign in to comment.