forward labelers to chat

This commit is contained in:
Samuel Newman
2026-08-26 12:54:08 +01:00
parent 5b88335bb1
commit 55c5f9dc9c
6 changed files with 89 additions and 25 deletions
+4 -3
View File
@@ -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,
})
}