@@ -7,7 +7,7 @@ import {
|
7 | 7 | normalizeOptionalLowercaseString, |
8 | 8 | normalizeOptionalString, |
9 | 9 | } from "../shared/string-coerce.js"; |
10 | | -import { getChannelPlugin, getLoadedChannelPlugin, normalizeChannelId } from "./plugins/index.js"; |
| 10 | +import { getLoadedChannelPlugin, normalizeChannelId } from "./plugins/index.js"; |
11 | 11 | import { parseExplicitTargetForChannel } from "./plugins/target-parsing.js"; |
12 | 12 | import { |
13 | 13 | resolveBundledChannelThreadBindingDefaultPlacement, |
@@ -233,11 +233,7 @@ export function resolveChannelDefaultBindingPlacement(
|
233 | 233 | } |
234 | 234 | const pluginPlacement = |
235 | 235 | resolveRuntimeChannelPlugin(channel)?.conversationBindings?.defaultTopLevelPlacement; |
236 | | -return ( |
237 | | -pluginPlacement ?? |
238 | | -resolveBundledChannelThreadBindingDefaultPlacement(channel) ?? |
239 | | -getChannelPlugin(channel)?.conversationBindings?.defaultTopLevelPlacement |
240 | | -); |
| 236 | +return pluginPlacement ?? resolveBundledChannelThreadBindingDefaultPlacement(channel); |
241 | 237 | } |
242 | 238 | |
243 | 239 | export function resolveCommandConversationResolution( |
@@ -405,23 +401,6 @@ export function resolveInboundConversationResolution(
|
405 | 401 | return artifactResolution; |
406 | 402 | } |
407 | 403 | |
408 | | -const bundledPlugin = getChannelPlugin(channel); |
409 | | -const bundledConversation = |
410 | | -bundledPlugin !== plugin |
411 | | - ? bundledPlugin?.messaging?.resolveInboundConversation?.(resolverParams) |
412 | | - : undefined; |
413 | | -const bundledResolution = normalizeResolutionTarget({ |
414 | | - channel, |
415 | | - accountId, |
416 | | -conversation: bundledConversation, |
417 | | -source: "inbound-bundled-plugin", |
418 | | - threadId, |
419 | | -plugin: bundledPlugin ?? plugin, |
420 | | -}); |
421 | | -if (bundledResolution || bundledConversation === null) { |
422 | | -return bundledResolution; |
423 | | -} |
424 | | - |
425 | 404 | const parentConversationId = |
426 | 405 | resolveChannelTargetId({ |
427 | 406 | channel, |
|