This commit is contained in:
Maik Schreiber 2026-01-30 21:36:29 +08:00 committed by GitHub
commit a0b869f4ee
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -516,7 +516,7 @@ export async function monitorMattermostProvider(opts: MonitorMattermostOpts = {}
}); });
const baseSessionKey = route.sessionKey; 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({ const threadKeys = resolveThreadSessionKeys({
baseSessionKey, baseSessionKey,
threadId: threadRootId, threadId: threadRootId,