diff --git a/app/src/main/java/com/nextcloud/talk/chat/MessageInputFragment.kt b/app/src/main/java/com/nextcloud/talk/chat/MessageInputFragment.kt index 294692788..f803c4fc0 100644 --- a/app/src/main/java/com/nextcloud/talk/chat/MessageInputFragment.kt +++ b/app/src/main/java/com/nextcloud/talk/chat/MessageInputFragment.kt @@ -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, @@ -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,