onStop

open override fun onStop()

Pauses the chat components when the app goes to the background, or hides the keyboard when the fragment is being removed.