Hide any message bottom sheet when leaving conversation

This commit is contained in:
Sylvain Berfini 2024-08-07 15:40:08 +02:00
parent 1c8a376c7f
commit 59aa036875

View file

@ -886,6 +886,8 @@ open class ConversationFragment : SlidingPaneChildFragment() {
val bottomSheetBehavior = BottomSheetBehavior.from(binding.messageBottomSheet.root)
bottomSheetBehavior.removeBottomSheetCallback(bottomSheetCallback)
bottomSheetBehavior.state = BottomSheetBehavior.STATE_COLLAPSED
currentChatMessageModelForBottomSheet?.isSelected?.value = false
currentChatMessageModelForBottomSheet = null
}