mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-06 06:41:08 +00:00
fix(ci): normalize line default-account setup checks
This commit is contained in:
@@ -57,8 +57,7 @@ const lineDmPolicy: ChannelSetupDmPolicy = {
|
||||
},
|
||||
getCurrent: (cfg, accountId) =>
|
||||
resolveLineAccount({ cfg, accountId: accountId ?? resolveDefaultLineAccountId(cfg) }).config
|
||||
.dmPolicy ??
|
||||
"pairing",
|
||||
.dmPolicy ?? "pairing",
|
||||
setPolicy: (cfg, policy, accountId) =>
|
||||
patchLineAccountConfig({
|
||||
cfg,
|
||||
@@ -94,13 +93,15 @@ export const lineSetupWizard: ChannelSetupWizard = {
|
||||
configuredScore: 1,
|
||||
unconfiguredScore: 0,
|
||||
includeStatusLine: true,
|
||||
resolveConfigured: ({ cfg, accountId }) => isLineConfigured(cfg, accountId),
|
||||
resolveConfigured: ({ cfg, accountId }) =>
|
||||
isLineConfigured(cfg, accountId ?? resolveDefaultLineAccountId(cfg)),
|
||||
resolveExtraStatusLines: ({ cfg }) => [`Accounts: ${listLineAccountIds(cfg).length || 0}`],
|
||||
}),
|
||||
introNote: {
|
||||
title: "LINE Messaging API",
|
||||
lines: LINE_SETUP_HELP_LINES,
|
||||
shouldShow: ({ cfg, accountId }) => !isLineConfigured(cfg, accountId),
|
||||
shouldShow: ({ cfg, accountId }) =>
|
||||
!isLineConfigured(cfg, accountId ?? resolveDefaultLineAccountId(cfg)),
|
||||
},
|
||||
credentials: [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user