Revert "fix: handle forum/topics in Telegram DM thread routing (#17980)"

This reverts commit e20b87f1ba.
This commit is contained in:
Nimrod Gutman
2026-02-17 11:16:36 +02:00
parent 32d12fcae9
commit 9f907320c3
2 changed files with 6 additions and 37 deletions

View File

@@ -101,15 +101,13 @@ export function resolveTelegramThreadSpec(params: {
scope: params.isForum ? "forum" : "none",
};
}
// DM with forum/topics enabled — treat like a forum, not a flat DM
if (params.isForum && params.messageThreadId != null) {
return { id: params.messageThreadId, scope: "forum" };
if (params.messageThreadId == null) {
return { scope: "dm" };
}
// Preserve thread ID for non-forum DM threads (session routing, #8891)
if (params.messageThreadId != null) {
return { id: params.messageThreadId, scope: "dm" };
}
return { scope: "dm" };
return {
id: params.messageThreadId,
scope: "dm",
};
}
/**