fix: resolveAllowFrom uses cfg+accountId params, not account

This commit is contained in:
Monty Taylor
2026-02-13 09:04:16 -06:00
committed by Peter Steinberger
parent 1a17466a60
commit a76ac1344e

View File

@@ -145,8 +145,10 @@ export const matrixPlugin: ChannelPlugin<ResolvedMatrixAccount> = {
configured: account.configured,
baseUrl: account.homeserver,
}),
resolveAllowFrom: ({ account }) =>
(account.config.dm?.allowFrom ?? []).map((entry) => String(entry)),
resolveAllowFrom: ({ cfg, accountId }) => {
const account = resolveMatrixAccount({ cfg: cfg as CoreConfig, accountId });
return (account.config.dm?.allowFrom ?? []).map((entry: string | number) => String(entry));
},
formatAllowFrom: ({ allowFrom }) => normalizeMatrixAllowList(allowFrom),
},
security: {