fix hair ownedship

This commit is contained in:
Phillip Thelen 2024-05-31 15:09:37 +02:00
parent d9921adb96
commit 2a648dd668
2 changed files with 2 additions and 2 deletions

View file

@ -344,7 +344,7 @@ class ComposeAvatarCustomizationFragment :
fun updateUser(user: User?) {
if (user == null) return
this.updateActiveCustomization(user)
ownedCustomizations.value = user.purchased?.customizations?.filter { it.type == this.type && it.purchased } ?: emptyList()
ownedCustomizations.value = user.purchased?.customizations?.filter { it.type == this.type && (it.category.isNullOrEmpty() || it.category == this.category) && it.purchased } ?: emptyList()
viewModel.userSize.value = user.preferences?.size ?: "slim"
viewModel.hairColor.value = user.preferences?.hair?.color
}

View file

@ -1,2 +1,2 @@
NAME=4.3.7
CODE=7821
CODE=7831