mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-08 03:51:25 +00:00
fix: clean up onboarding + channel selection types
This commit is contained in:
@@ -111,8 +111,9 @@ export const agentHandlers: GatewayRequestHandlers = {
|
||||
}
|
||||
const rawChannel = typeof request.channel === "string" ? request.channel.trim() : "";
|
||||
if (rawChannel) {
|
||||
const isKnownGatewayChannel = (value: string): boolean => isGatewayMessageChannel(value);
|
||||
const normalized = normalizeMessageChannel(rawChannel);
|
||||
if (normalized && normalized !== "last" && !isGatewayMessageChannel(normalized)) {
|
||||
if (normalized && normalized !== "last" && !isKnownGatewayChannel(normalized)) {
|
||||
respond(
|
||||
false,
|
||||
undefined,
|
||||
|
||||
Reference in New Issue
Block a user