diff options
Diffstat (limited to 'client/src/app/shared/users/user.model.ts')
-rw-r--r-- | client/src/app/shared/users/user.model.ts | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/client/src/app/shared/users/user.model.ts b/client/src/app/shared/users/user.model.ts index 3663a7b61..c15f1de8c 100644 --- a/client/src/app/shared/users/user.model.ts +++ b/client/src/app/shared/users/user.model.ts | |||
@@ -1,4 +1,4 @@ | |||
1 | import { hasUserRight, User as UserServerModel, UserRight, UserRole, VideoChannel } from '../../../../../shared' | 1 | import { hasUserRight, User as UserServerModel, UserNotificationSetting, UserRight, UserRole, VideoChannel } from '../../../../../shared' |
2 | import { NSFWPolicyType } from '../../../../../shared/models/videos/nsfw-policy.type' | 2 | import { NSFWPolicyType } from '../../../../../shared/models/videos/nsfw-policy.type' |
3 | import { Account } from '@app/shared/account/account.model' | 3 | import { Account } from '@app/shared/account/account.model' |
4 | import { Avatar } from '../../../../../shared/models/avatars/avatar.model' | 4 | import { Avatar } from '../../../../../shared/models/avatars/avatar.model' |
@@ -24,6 +24,8 @@ export class User implements UserServerModel { | |||
24 | blocked: boolean | 24 | blocked: boolean |
25 | blockedReason?: string | 25 | blockedReason?: string |
26 | 26 | ||
27 | notificationSettings?: UserNotificationSetting | ||
28 | |||
27 | constructor (hash: Partial<UserServerModel>) { | 29 | constructor (hash: Partial<UserServerModel>) { |
28 | this.id = hash.id | 30 | this.id = hash.id |
29 | this.username = hash.username | 31 | this.username = hash.username |
@@ -41,6 +43,8 @@ export class User implements UserServerModel { | |||
41 | this.blocked = hash.blocked | 43 | this.blocked = hash.blocked |
42 | this.blockedReason = hash.blockedReason | 44 | this.blockedReason = hash.blockedReason |
43 | 45 | ||
46 | this.notificationSettings = hash.notificationSettings | ||
47 | |||
44 | if (hash.account !== undefined) { | 48 | if (hash.account !== undefined) { |
45 | this.account = new Account(hash.account) | 49 | this.account = new Account(hash.account) |
46 | } | 50 | } |