forward labelers to chat
This commit is contained in:
@@ -54,12 +54,13 @@ export function buildPdsClient(agent: Agent): Client {
|
||||
* env-configurable `CHAT_PROXY_DID` rather than a hard-coded constant, so it can
|
||||
* be retargeted per environment.
|
||||
*
|
||||
* `appLabelers: null` for the same reason as the PDS client: the chat service
|
||||
* takes no moderation authorities.
|
||||
* Unlike the PDS client, chat carries moderation authorities. The service uses
|
||||
* them to hydrate labels on profiles embedded in conversation responses, so
|
||||
* this client reads the global `Client.appLabelers` and receives the account's
|
||||
* subscriptions through `configureModerationForAccount`.
|
||||
*/
|
||||
export function buildChatClient(agent: Agent): Client {
|
||||
return createLexClient(agent, {
|
||||
appLabelers: null,
|
||||
service: CHAT_PROXY_SERVICE,
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user