Added TTS chat filters.
This commit is contained in:
13
src/app/shared/models/filter.ts
Normal file
13
src/app/shared/models/filter.ts
Normal file
@ -0,0 +1,13 @@
|
||||
export enum FilterFlag {
|
||||
None = 0,
|
||||
IgnoreCase = 1,
|
||||
}
|
||||
|
||||
export interface Filter {
|
||||
id: string;
|
||||
search: string;
|
||||
replace: string;
|
||||
user_id: string;
|
||||
flag: FilterFlag;
|
||||
is_regex: boolean;
|
||||
}
|
@ -25,7 +25,7 @@ export class ApiAuthenticationService {
|
||||
}
|
||||
|
||||
getImpersonatedId() {
|
||||
return this.user.impersonation?.id;
|
||||
return this.user?.impersonation?.id;
|
||||
}
|
||||
|
||||
getUsername() {
|
||||
@ -45,7 +45,6 @@ export class ApiAuthenticationService {
|
||||
'Authorization': 'Bearer ' + jwt
|
||||
}
|
||||
}).subscribe((data: any) => {
|
||||
console.log('jwt validation', data);
|
||||
this.updateAuthenticated(data?.authenticated, data?.user);
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user