style(extensions): format channel integration updates

This commit is contained in:
Peter Steinberger
2026-04-04 06:02:37 +01:00
parent 8b5672bda4
commit fd75d214f2
33 changed files with 124 additions and 121 deletions

View File

@@ -21,8 +21,8 @@ export function setBlueBubblesDmPolicy(
const existingAllowFrom =
resolvedAccountId === "default"
? cfg.channels?.bluebubbles?.allowFrom
: cfg.channels?.bluebubbles?.accounts?.[resolvedAccountId]?.allowFrom ??
cfg.channels?.bluebubbles?.allowFrom;
: (cfg.channels?.bluebubbles?.accounts?.[resolvedAccountId]?.allowFrom ??
cfg.channels?.bluebubbles?.allowFrom);
return patchScopedAccountConfig({
cfg,
channelKey: channel,

View File

@@ -149,14 +149,9 @@ const dmPolicy: ChannelSetupDmPolicy = {
resolveBlueBubblesAccount({
cfg,
accountId: accountId ?? resolveDefaultBlueBubblesAccountId(cfg),
}).config
.dmPolicy ?? "pairing",
}).config.dmPolicy ?? "pairing",
setPolicy: (cfg, policy, accountId) =>
setBlueBubblesDmPolicy(
cfg,
accountId ?? resolveDefaultBlueBubblesAccountId(cfg),
policy,
),
setBlueBubblesDmPolicy(cfg, accountId ?? resolveDefaultBlueBubblesAccountId(cfg), policy),
promptAllowFrom: promptBlueBubblesAllowFrom,
};