Skip to content

Commit

Permalink
Merge pull request #4462 from nextcloud/backport/4451/stable-20.0
Browse files Browse the repository at this point in the history
[stable-20.0] fix NPE currentConversation!!.internalId
  • Loading branch information
mahibi authored Nov 18, 2024
2 parents 301e008 + 54fc057 commit 36ba3ea
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ class MessageInputFragment : Fragment() {
if (isOnline) {
chatActivity.messageInputViewModel.switchToMessageQueue(false)
chatActivity.messageInputViewModel.sendAndEmptyMessageQueue(
chatActivity.currentConversation!!.internalId,
conversationInternalId,
chatActivity.conversationUser!!.getCredentials(),
ApiUtils.getUrlForChat(
chatActivity.chatApiVersion,
Expand Down Expand Up @@ -796,7 +796,7 @@ class MessageInputFragment : Fragment() {

private fun sendMessage(message: CharSequence, replyTo: Int?, sendWithoutNotification: Boolean) {
chatActivity.messageInputViewModel.sendChatMessage(
chatActivity.currentConversation!!.internalId,
conversationInternalId,
chatActivity.conversationUser!!.getCredentials(),
ApiUtils.getUrlForChat(
chatActivity.chatApiVersion,
Expand Down

0 comments on commit 36ba3ea

Please sign in to comment.