refactor: simplify channel allowlist resolvers

This commit is contained in:
Peter Steinberger
2026-03-22 20:07:29 +00:00
parent fa13c2960e
commit 7a2709c391
7 changed files with 10 additions and 9 deletions

View File

@@ -116,7 +116,7 @@ export const imessagePlugin: ChannelPlugin<ResolvedIMessageAccount> = {
},
allowlist: buildDmGroupAccountAllowlistAdapter({
channelId: "imessage",
resolveAccount: ({ cfg, accountId }) => resolveIMessageAccount({ cfg, accountId }),
resolveAccount: resolveIMessageAccount,
normalize: ({ values }) => formatTrimmedAllowFromEntries(values),
resolveDmAllowFrom: (account) => account.config.allowFrom,
resolveGroupAllowFrom: (account) => account.config.groupAllowFrom,