fix(mattermost): ensure replies create threads in channels (except DMs)

This commit is contained in:
Maik 2026-01-26 17:11:49 +00:00
parent 2a4ccb624a
commit c571628d89

View File

@ -516,7 +516,7 @@ export async function monitorMattermostProvider(opts: MonitorMattermostOpts = {}
});
const baseSessionKey = route.sessionKey;
const threadRootId = post.root_id?.trim() || undefined;
const threadRootId = post.root_id?.trim() || (kind !== "dm" ? post.id : undefined);
const threadKeys = resolveThreadSessionKeys({
baseSessionKey,
threadId: threadRootId,