return !!this.preview || this.actor.avatars.length !== 0
}
- isChannel () {
- return !!(this.actor as VideoChannel).ownerAccount
- }
-
- getChannel (): VideoChannel {
- if (this.isChannel()) return this.actor as VideoChannel
-
- return undefined
- }
-
- getAccount (): Account {
- if (this.isChannel()) return undefined
+ getActorType () {
+ if ((this.actor as VideoChannel).ownerAccount) return 'channel'
- return this.actor as Account
+ return 'account'
}
}