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,
|
||||
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: {
|
||||
|
||||
Reference in New Issue
Block a user