inline the did reads, drop the getDidFromClient util

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
Samuel Newman
2026-08-04 15:11:57 +03:00
parent 4c5294a1a2
commit 89db69ce55
2 changed files with 1 additions and 14 deletions
@@ -3,7 +3,6 @@ import {type Client} from '@atproto/lex'
import {networkRetry} from '#/lib/async/retry'
import {logger} from '#/logger'
import {
getDidFromClient,
getOtherRequiredDataFromCache,
setOtherRequiredDataActorDeclarationCache,
} from '#/ageAssurance/data'
@@ -32,7 +31,7 @@ export async function restrictChatSettings({
restrictIncoming?: boolean
restrictGroupInvites?: boolean
}): Promise<void> {
const did = getDidFromClient(client)
const did = client.did
if (!did) return
const cached = getOtherRequiredDataFromCache({did})?.actorDeclaration