"Invite users to space" dialog now closed when user choose invite method (#5126)

This commit is contained in:
fedrunov 2022-02-02 12:54:45 +01:00 committed by GitHub
parent ecf356f6eb
commit 65fd5489a3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 0 deletions

1
changelog.d/4295.misc Normal file
View File

@ -0,0 +1 @@
"Invite users to space" dialog now closed when user choose invite method

View File

@ -85,6 +85,7 @@ class ShareSpaceBottomSheet : VectorBaseBottomSheetDialogFragment<BottomSheetSpa
is ShareSpaceViewEvents.NavigateToInviteUser -> { is ShareSpaceViewEvents.NavigateToInviteUser -> {
val intent = InviteUsersToRoomActivity.getIntent(requireContext(), event.spaceId) val intent = InviteUsersToRoomActivity.getIntent(requireContext(), event.spaceId)
startActivity(intent) startActivity(intent)
dismissAllowingStateLoss()
} }
is ShareSpaceViewEvents.ShowInviteByLink -> { is ShareSpaceViewEvents.ShowInviteByLink -> {
startSharePlainTextIntent( startSharePlainTextIntent(
@ -94,6 +95,7 @@ class ShareSpaceBottomSheet : VectorBaseBottomSheetDialogFragment<BottomSheetSpa
text = getString(R.string.share_space_link_message, event.spaceName, event.permalink), text = getString(R.string.share_space_link_message, event.spaceName, event.permalink),
extraTitle = getString(R.string.share_space_link_message, event.spaceName, event.permalink) extraTitle = getString(R.string.share_space_link_message, event.spaceName, event.permalink)
) )
dismissAllowingStateLoss()
} }
} }
} }