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 mahibi committed Dec 10, 2024
1 parent a268819 commit a66d0cf
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 a66d0cf

Please sign in to comment.