mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-04 21:10:25 +00:00
fix: honor selected account in setup status
This commit is contained in:
@@ -122,11 +122,11 @@ export const telegramSetupWizard: ChannelSetupWizard = {
|
||||
unconfiguredHint: "recommended · newcomer-friendly",
|
||||
configuredScore: 1,
|
||||
unconfiguredScore: 10,
|
||||
resolveConfigured: ({ cfg }) =>
|
||||
listTelegramAccountIds(cfg).some((accountId) => {
|
||||
const account = inspectTelegramAccount({ cfg, accountId });
|
||||
return account.configured;
|
||||
}),
|
||||
resolveConfigured: ({ cfg, accountId }) =>
|
||||
(accountId ? [accountId] : listTelegramAccountIds(cfg)).some((resolvedAccountId) => {
|
||||
const account = inspectTelegramAccount({ cfg, accountId: resolvedAccountId });
|
||||
return account.configured;
|
||||
}),
|
||||
}),
|
||||
prepare: async ({ cfg, accountId, credentialValues }) => ({
|
||||
cfg: ensureTelegramDefaultGroupMentionGate(cfg, accountId),
|
||||
|
||||
Reference in New Issue
Block a user