You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create a class PublicAssetIdentityCallback extends IdentityCallback,
The code looks like this:
classPublicAssetIdentityCallback@Inject()(publicAssetRepository: PublicAssetRepository) extendsIdentityCallback {
overridedefidentityRemoved(username: Username, identityId: IdentityId):Publisher[Void] = {
// get all public assets for the user// then filter the public assets that have the identityId// then remove the identityId from the public assetSFlux(publicAssetRepository.list(username))
.flatMap(publicAsset => {
valupdatedIdentityIds:Seq[IdentityId] = publicAsset.identityIds.filterNot(_ == identityId)
publicAssetRepository.update(username, publicAsset.id, updatedIdentityIds.toSet)
})
.`then`()
}
}
Dod
Unit test
jmap integration test
The text was updated successfully, but these errors were encountered:
Why?
When I remove an identity, other identity ids shall be removed in the background
original: #1050 (comment)
How
class PublicAssetIdentityCallback extends IdentityCallback
,The code looks like this:
Dod
The text was updated successfully, but these errors were encountered: