Fix crash when text draft save debouncer fires after fragment is destroyed.

This commit is contained in:
Alex Hart
2023-07-21 16:32:03 -03:00
parent f5ee9d4a3b
commit 306fa24d6b

View File

@@ -366,6 +366,8 @@ class ConversationFragment :
setOnClickListener(null)
removeOnFocusChangeListener(composeTextEventsListener)
}
textDraftSaveDebouncer.clear()
}
private val viewModel: ConversationViewModel by viewModel {