We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6494813 commit 6ddd3b3Copy full SHA for 6ddd3b3
1 file changed
extensions/mattermost/src/session-route.ts
@@ -34,7 +34,7 @@ export function resolveMattermostOutboundSessionRoute(params: ChannelOutboundSes
34
// as group. When the monitor has resolved the channel type, the cache
35
// entry carries the authoritative Mattermost channel kind (D→direct,
36
// G/P→group, O→channel).
37
- const cachedKind = mattermostChannelKindCache.get(rawId, params.accountId);
+ const cachedKind = mattermostChannelKindCache.get(rawId, params.accountId ?? undefined);
38
const chatType = isUser ? "direct" : cachedKind === "group" ? "group" : "channel";
39
// Align peer kind, from, and to with the resolved chatType so that
40
// private-channel group routes share the same session-key namespace.
0 commit comments