UserRole,
VideoChannel
} from '@shared/models'
-import { UserKeys } from '@root-helpers/user-keys'
export class User implements UserServerModel {
- static KEYS = UserKeys
-
id: number
username: string
email: string
}
}
- updateAccountAvatar (newAccountAvatar: Avatar) {
- this.account.updateAvatar(newAccountAvatar)
+ updateAccountAvatar (newAccountAvatar?: Avatar) {
+ if (newAccountAvatar) this.account.updateAvatar(newAccountAvatar)
+ else this.account.resetAvatar()
}
isUploadDisabled () {