fix: clean up onboarding + channel selection types
This commit is contained in:
1 parent
9c02ea9098
commit
57c66fe813
7 files changed
+56
-37
No files matched your search
@@ -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