mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-14 10:41:23 +00:00
perf: avoid plugin registry in reply threading
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { normalizeChannelId as normalizePluginChannelId } from "../../channels/plugins/index.js";
|
||||
import type { ChannelThreadingAdapter } from "../../channels/plugins/types.core.js";
|
||||
import { normalizeAnyChannelId } from "../../channels/registry.js";
|
||||
import type { OpenClawConfig } from "../../config/config.js";
|
||||
import type { ReplyToMode } from "../../config/types.js";
|
||||
import { normalizeOptionalLowercaseString } from "../../shared/string-coerce.js";
|
||||
@@ -28,7 +28,7 @@ export function resolveConfiguredReplyToMode(
|
||||
channel?: OriginatingChannelType,
|
||||
chatType?: string | null,
|
||||
): ReplyToMode {
|
||||
const provider = normalizePluginChannelId(channel) ?? normalizeOptionalLowercaseString(channel);
|
||||
const provider = normalizeAnyChannelId(channel) ?? normalizeOptionalLowercaseString(channel);
|
||||
if (!provider) {
|
||||
return "all";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user