Pop the "Create backup now" sheet after different instances of subscribing to backups.

This commit is contained in:
Alex Hart
2024-08-08 15:35:47 -03:00
committed by mtang-signal
parent 3bdbd69a7d
commit 1d6917476e
19 changed files with 245 additions and 86 deletions

View File

@@ -382,6 +382,10 @@ class ConversationFragment :
MessageRequestRepository(requireContext())
}
private val checkoutLauncher by lazy {
registerForActivityResult(CheckoutFlowActivity.Contract()) {}
}
private val disposables = LifecycleDisposable()
private val binding by ViewBinderDelegate(V2ConversationFragmentBinding::bind) { _binding ->
_binding.conversationInputPanel.embeddedTextEditor.apply {
@@ -2959,7 +2963,7 @@ class ConversationFragment :
override fun onCallToAction(action: String) {
if ("gift_badge" == action) {
startActivity(CheckoutFlowActivity.createIntent(requireContext(), InAppPaymentType.ONE_TIME_GIFT))
checkoutLauncher.launch(InAppPaymentType.ONE_TIME_GIFT)
} else if ("username_edit" == action) {
startActivity(EditProfileActivity.getIntentForUsernameEdit(requireContext()))
}