fix: avoid session metadata channel runtime fallback

This commit is contained in:
Shakker
2026-04-26 07:34:57 +01:00
parent 49b106d357
commit bbed91bf71

View File

@@ -1,7 +1,7 @@
import type { MsgContext } from "../../auto-reply/templating.js";
import { normalizeChatType } from "../../channels/chat-type.js";
import { resolveConversationLabel } from "../../channels/conversation-label.js";
import { getChannelPlugin, normalizeChannelId } from "../../channels/plugins/index.js";
import { getLoadedChannelPlugin, normalizeChannelId } from "../../channels/plugins/index.js";
import {
normalizeOptionalLowercaseString,
normalizeOptionalString,
@@ -139,7 +139,7 @@ export function deriveGroupSessionPatch(params: {
subjectLooksChannel && resolution.chatType !== "channel" ? normalizeChannelId(channel) : null;
const isChannelProvider = Boolean(
normalizedChannel &&
getChannelPlugin(normalizedChannel)?.capabilities.chatTypes.includes("channel"),
getLoadedChannelPlugin(normalizedChannel)?.capabilities.chatTypes.includes("channel"),
);
const nextGroupChannel =
explicitChannel ??