Reset party to noParty after leaving group

Loads noParty when user leaves a group.
This commit is contained in:
Zoe Abrams 2020-04-10 23:18:47 -07:00
parent a7b473867d
commit 9d6d2db311

View file

@ -359,11 +359,13 @@ class PartyDetailFragment : BaseFragment() {
alert.addButton(R.string.keep_challenges, true) { _, _ ->
viewModel?.leaveGroup(true) {
fragmentManager?.popBackStack()
MainNavigationController.navigate(R.id.noPartyFragment)
}
}
alert.addButton(R.string.leave_challenges, true) { _, _ ->
viewModel?.leaveGroup(false) {
fragmentManager?.popBackStack()
MainNavigationController.navigate(R.id.noPartyFragment)
}
}
alert.addButton(R.string.no, false)