diff --git a/src/message-runtime.ts b/src/message-runtime.ts index 0ae37a9..495074d 100644 --- a/src/message-runtime.ts +++ b/src/message-runtime.ts @@ -1003,8 +1003,7 @@ export function createMessageRuntime(deps: MessageRuntimeDeps): { const turnChannel = resolveChannelForRole(turnRole); const cursorKey = resolveCursorKeyForRole(chatJid, turnRole); const forcedRole = - pendingTaskForChannel && - turnRole !== resolveActiveRole(taskStatus) + pendingTaskForChannel && turnRole !== resolveActiveRole(taskStatus) ? turnRole : undefined;