Skip to content

Commit

Permalink
Merge pull request #4525 from nextcloud/issue-4498-voice-recording-ic…
Browse files Browse the repository at this point in the history
…on-overlay-bug

Fixed Message draft overlayed icon bug
  • Loading branch information
mahibi authored Dec 10, 2024
2 parents cbce4e9 + 1c108c9 commit aa43824
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 aa43824

Please sign in to comment.