mirror of
https://github.com/nextcloud/talk-android
synced 2025-07-19 18:55:05 +01:00
disabled message queuing - still kept code for now until i can fix it or remove it otherwise
Signed-off-by: rapterjet2004 <juliuslinus1@gmail.com>
This commit is contained in:
parent
fe4bf942ab
commit
6a3ece6703
@ -175,9 +175,8 @@ class MessageInputFragment : Fragment() {
|
|||||||
wasOnline = !binding.fragmentMessageInputView.isShown
|
wasOnline = !binding.fragmentMessageInputView.isShown
|
||||||
Log.d(TAG, "isOnline: $isOnline\nwasOnline: $wasOnline\nconnectionGained: $connectionGained")
|
Log.d(TAG, "isOnline: $isOnline\nwasOnline: $wasOnline\nconnectionGained: $connectionGained")
|
||||||
|
|
||||||
// FIXME I think this might be called when remote server is null, because I joined when no internet
|
// FIXME timeout exception - maybe something to do with the room?
|
||||||
// thus room not joined. I would need to make sure that the room is joined before I send messages
|
// handleMessageQueue(isOnline)
|
||||||
handleMessageQueue(isOnline)
|
|
||||||
handleUI(isOnline, connectionGained)
|
handleUI(isOnline, connectionGained)
|
||||||
}.collect()
|
}.collect()
|
||||||
}
|
}
|
||||||
@ -212,6 +211,7 @@ class MessageInputFragment : Fragment() {
|
|||||||
|
|
||||||
binding.fragmentMessageInputView.attachmentButton.isEnabled = true
|
binding.fragmentMessageInputView.attachmentButton.isEnabled = true
|
||||||
binding.fragmentMessageInputView.recordAudioButton.isEnabled = true
|
binding.fragmentMessageInputView.recordAudioButton.isEnabled = true
|
||||||
|
binding.fragmentMessageInputView.messageInput.isEnabled = true
|
||||||
} else {
|
} else {
|
||||||
binding.fragmentConnectionLost.clearAnimation()
|
binding.fragmentConnectionLost.clearAnimation()
|
||||||
binding.fragmentConnectionLost.visibility = View.GONE
|
binding.fragmentConnectionLost.visibility = View.GONE
|
||||||
@ -221,6 +221,7 @@ class MessageInputFragment : Fragment() {
|
|||||||
binding.fragmentConnectionLost.visibility = View.VISIBLE
|
binding.fragmentConnectionLost.visibility = View.VISIBLE
|
||||||
binding.fragmentMessageInputView.attachmentButton.isEnabled = false
|
binding.fragmentMessageInputView.attachmentButton.isEnabled = false
|
||||||
binding.fragmentMessageInputView.recordAudioButton.isEnabled = false
|
binding.fragmentMessageInputView.recordAudioButton.isEnabled = false
|
||||||
|
binding.fragmentMessageInputView.messageInput.isEnabled = false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user