fix(mattermost): ensure replies create threads in channels (except DMs)
This commit is contained in:
parent
2a4ccb624a
commit
c571628d89
@ -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,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user