fix issue with reloading after joining party

This commit is contained in:
Phillip Thelen 2023-03-16 17:43:24 +01:00
parent ad4a16d901
commit 8252969a26
4 changed files with 4 additions and 3 deletions

View file

@ -30,6 +30,7 @@ import com.habitrpg.android.habitica.ui.views.HabiticaSnackbar.SnackbarDisplayTy
import com.habitrpg.android.habitica.ui.views.dialogs.HabiticaAlertDialog
import dagger.hilt.android.AndroidEntryPoint
import kotlinx.coroutines.delay
import kotlinx.coroutines.launch
import javax.inject.Inject
import kotlin.time.DurationUnit
import kotlin.time.toDuration

View file

@ -69,7 +69,7 @@ class NoPartyFragmentFragment : BaseMainFragment<FragmentNoPartyBinding>() {
binding?.invitationsView?.acceptCall = {
lifecycleScope.launch(ExceptionHandler.coroutine()) {
socialRepository.joinGroup(it)
userRepository.retrieveUser(false)
userRepository.retrieveUser(false, true)
parentFragmentManager.popBackStack()
MainNavigationController.navigate(
R.id.partyFragment,

View file

@ -107,7 +107,7 @@ class PartyFragment : BaseMainFragment<FragmentViewpagerBinding>() {
}
@Suppress("ReturnCount")
override fun onOpFtionsItemSelected(item: MenuItem): Boolean {
override fun onOptionsItemSelected(item: MenuItem): Boolean {
when (item.itemId) {
R.id.menu_invite_item -> {
val intent = Intent(mainActivity, GroupInviteActivity::class.java)

View file

@ -1,5 +1,5 @@
New in 4.1.8:
-Fixed various for: item names, chat refreshing, shared task creation, and duplicate items
-Fixed various for: item names, shared task creation, and duplicate items
-You can view, complete, assign, and add tasks to your Group Plan's shared task board!
-Tap your name on a task screen to switch to different task boards
-More intuitive system notification settings