mirror of
https://github.com/nextcloud/talk-android.git
synced 2024-11-21 12:35:30 +03:00
Merge pull request #4451 from nextcloud/bugfix/noid/fixNpeMessageInputConversationInternalId
fix NPE currentConversation!!.internalId
This commit is contained in:
commit
eb9eb99ca3
1 changed files with 2 additions and 2 deletions
|
@ -248,7 +248,7 @@ class MessageInputFragment : Fragment() {
|
||||||
if (isOnline) {
|
if (isOnline) {
|
||||||
chatActivity.messageInputViewModel.switchToMessageQueue(false)
|
chatActivity.messageInputViewModel.switchToMessageQueue(false)
|
||||||
chatActivity.messageInputViewModel.sendAndEmptyMessageQueue(
|
chatActivity.messageInputViewModel.sendAndEmptyMessageQueue(
|
||||||
chatActivity.currentConversation!!.internalId,
|
conversationInternalId,
|
||||||
chatActivity.conversationUser!!.getCredentials(),
|
chatActivity.conversationUser!!.getCredentials(),
|
||||||
ApiUtils.getUrlForChat(
|
ApiUtils.getUrlForChat(
|
||||||
chatActivity.chatApiVersion,
|
chatActivity.chatApiVersion,
|
||||||
|
@ -796,7 +796,7 @@ class MessageInputFragment : Fragment() {
|
||||||
|
|
||||||
private fun sendMessage(message: CharSequence, replyTo: Int?, sendWithoutNotification: Boolean) {
|
private fun sendMessage(message: CharSequence, replyTo: Int?, sendWithoutNotification: Boolean) {
|
||||||
chatActivity.messageInputViewModel.sendChatMessage(
|
chatActivity.messageInputViewModel.sendChatMessage(
|
||||||
chatActivity.currentConversation!!.internalId,
|
conversationInternalId,
|
||||||
chatActivity.conversationUser!!.getCredentials(),
|
chatActivity.conversationUser!!.getCredentials(),
|
||||||
ApiUtils.getUrlForChat(
|
ApiUtils.getUrlForChat(
|
||||||
chatActivity.chatApiVersion,
|
chatActivity.chatApiVersion,
|
||||||
|
|
Loading…
Reference in a new issue