This commit is contained in:
Vitor Pamplona
2026-03-03 10:23:27 -05:00
parent 2b80ab52b7
commit 3c32dbc701
@@ -92,7 +92,12 @@ class NewUserMetadataViewModel : ViewModel() {
// Load identities from kind 10011 first, fall back to kind 0 for backwards compat // Load identities from kind 10011 first, fall back to kind 0 for backwards compat
val identities = val identities =
account.userMetadata.getExternalIdentitiesEvent()?.identityClaims() account.userMetadata.getExternalIdentitiesEvent()?.identityClaims()
?: account.userProfile().metadataOrNull()?.flow?.value?.identities ?: account
.userProfile()
.metadataOrNull()
?.flow
?.value
?.identities
?: emptyList() ?: emptyList()
identities.forEach { identity -> identities.forEach { identity ->