You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
The Matrix channel previously hardcoded `listMatrixAccountIds` to always return only `DEFAULT_ACCOUNT_ID`, ignoring any accounts configured in `channels.matrix.accounts`. This prevented running multiple Matrix bot accounts simultaneously. Changes: - Update `listMatrixAccountIds` to read from `channels.matrix.accounts` config, falling back to `DEFAULT_ACCOUNT_ID` for legacy single-account configurations - Add `resolveMatrixConfigForAccount` to resolve config for a specific account ID, merging account-specific values with top-level defaults - Update `resolveMatrixAccount` to use account-specific config when available - The multi-account config structure (channels.matrix.accounts) was not defined in the MatrixConfig type, causing TypeScript to not recognize the field. Added the accounts field to properly type the multi-account configuration. - Add stopSharedClientForAccount() to stop only the specific account's client instead of all clients when an account shuts down - Wrap dynamic import in try/finally to prevent startup mutex deadlock if the import fails - Pass accountId to resolveSharedMatrixClient(), resolveMatrixAuth(), and createMatrixClient() to ensure the correct account's credentials are used for outbound messages - Add accountId parameter to resolveMediaMaxBytes to check account-specific config before falling back to top-level config - Maintain backward compatibility with existing single-account setups This follows the same pattern already used by the WhatsApp channel for multi-account support. Fixes #3165 Fixes #3085 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> |
9 months ago | |
|---|---|---|
| .. | ||
| .i18n | 10 months ago | |
| assets | 10 months ago | |
| automation | 9 months ago | |
| channels | 9 months ago | |
| cli | 9 months ago | |
| concepts | 9 months ago | |
| debug | 10 months ago | |
| diagnostics | 10 months ago | |
| experiments | 10 months ago | |
| gateway | 9 months ago | |
| help | 9 months ago | |
| images | 10 months ago | |
| install | 9 months ago | |
| ja-JP | 10 months ago | |
| nodes | 9 months ago | |
| platforms | 9 months ago | |
| plugins | 10 months ago | |
| providers | 9 months ago | |
| refactor | 10 months ago | |
| reference | 9 months ago | |
| security | 10 months ago | |
| start | 9 months ago | |
| tools | 9 months ago | |
| web | 10 months ago | |
| zh-CN | 9 months ago | |
| CNAME | 10 months ago | |
| brave-search.md | 10 months ago | |
| ci.md | 9 months ago | |
| date-time.md | 10 months ago | |
| docs.json | 9 months ago | |
| index.md | 10 months ago | |
| logging.md | 10 months ago | |
| network.md | 10 months ago | |
| perplexity.md | 10 months ago | |
| pi-dev.md | 10 months ago | |
| pi.md | 10 months ago | |
| prose.md | 10 months ago | |
| style.css | 10 months ago | |
| tts.md | 10 months ago | |
| vps.md | 10 months ago | |
| whatsapp-openclaw-ai-zh.jpg | 10 months ago | |
| whatsapp-openclaw.jpg | 10 months ago | |