mirror of
https://github.com/farcasclaudiu/openclaw.git
synced 2026-06-29 07:01:40 +03:00
fix: resolveAllowFrom uses cfg+accountId params, not account
This commit is contained in:
committed by
Peter Steinberger
parent
1a17466a60
commit
a76ac1344e
@@ -145,8 +145,10 @@ export const matrixPlugin: ChannelPlugin<ResolvedMatrixAccount> = {
|
|||||||
configured: account.configured,
|
configured: account.configured,
|
||||||
baseUrl: account.homeserver,
|
baseUrl: account.homeserver,
|
||||||
}),
|
}),
|
||||||
resolveAllowFrom: ({ account }) =>
|
resolveAllowFrom: ({ cfg, accountId }) => {
|
||||||
(account.config.dm?.allowFrom ?? []).map((entry) => String(entry)),
|
const account = resolveMatrixAccount({ cfg: cfg as CoreConfig, accountId });
|
||||||
|
return (account.config.dm?.allowFrom ?? []).map((entry: string | number) => String(entry));
|
||||||
|
},
|
||||||
formatAllowFrom: ({ allowFrom }) => normalizeMatrixAllowList(allowFrom),
|
formatAllowFrom: ({ allowFrom }) => normalizeMatrixAllowList(allowFrom),
|
||||||
},
|
},
|
||||||
security: {
|
security: {
|
||||||
|
|||||||
Reference in New Issue
Block a user