UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

15 lines (14 loc) • 980 B
import { v as normalizeOptionalAccountId } from "./session-key-DAhnzjyr.js"; import { $ as resolveMatrixConfigFieldPath, I as resolveDefaultMatrixAccountId } from "./send-C-3t8GKS.js"; //#region extensions/matrix/src/matrix/encryption-guidance.ts function resolveMatrixEncryptionConfigPath(cfg, accountId) { return resolveMatrixConfigFieldPath(cfg, normalizeOptionalAccountId(accountId) ?? resolveDefaultMatrixAccountId(cfg), "encryption"); } function formatMatrixEncryptionUnavailableError(cfg, accountId) { return `Matrix encryption is not available (enable ${resolveMatrixEncryptionConfigPath(cfg, accountId)}=true)`; } function formatMatrixEncryptedEventDisabledWarning(cfg, accountId) { return `matrix: encrypted event received without encryption enabled; set ${resolveMatrixEncryptionConfigPath(cfg, accountId)}=true and verify the device to decrypt`; } //#endregion export { formatMatrixEncryptionUnavailableError as n, formatMatrixEncryptedEventDisabledWarning as t };