mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-08 15:48:28 +00:00
fix: don't lowercase Slack channel IDs (#14055)
This commit is contained in:
@@ -11,8 +11,7 @@ export function normalizeTargetForProvider(provider: string, raw?: string): stri
|
|||||||
}
|
}
|
||||||
const providerId = normalizeChannelId(provider);
|
const providerId = normalizeChannelId(provider);
|
||||||
const plugin = providerId ? getChannelPlugin(providerId) : undefined;
|
const plugin = providerId ? getChannelPlugin(providerId) : undefined;
|
||||||
const normalized =
|
const normalized = plugin?.messaging?.normalizeTarget?.(raw) ?? (raw.trim() || undefined);
|
||||||
plugin?.messaging?.normalizeTarget?.(raw) ?? (raw.trim().toLowerCase() || undefined);
|
|
||||||
return normalized || undefined;
|
return normalized || undefined;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user