Added TTS chat filters.

This commit is contained in:
Tom
2024-12-28 01:37:44 +00:00
parent 0afa2138b4
commit 275069697f
30 changed files with 722 additions and 192 deletions

View 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;
}

View File

@ -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);
});
}