import { NSFWPolicyType } from '../../../../../shared/models/videos/nsfw-policy.type'
import { Actor } from '@app/shared/actor/actor.model'
import { Account } from '@app/shared/account/account.model'
+import { Avatar } from '../../../../../shared/models/avatars/avatar.model'
export type UserConstructorHash = {
id: number,
this.updateComputedAttributes()
}
+ updateAccountAvatar (newAccountAvatar: Avatar) {
+ this.account.avatar = newAccountAvatar
+
+ this.updateComputedAttributes()
+ }
+
private updateComputedAttributes () {
this.accountAvatarUrl = Actor.GET_ACTOR_AVATAR_URL(this.account)
}