refactor: normalize inbound context

This commit is contained in:
Peter Steinberger committed 2026-01-17 04:05:33 +00:00
1 parent 9f4b7a1683
commit a2b5b1f0cb
31 files changed
+155 -35

No files matched your search

+1 -1
View File
@@ -136,6 +136,6 @@ export function resolveGroupSessionKey(ctx: MsgContext): GroupKeyResolution | nu
legacyKey,
channel: resolvedProvider,
id: id || raw || from,
chatType: resolvedKind === "channel" ? "room" : "group",
chatType: resolvedKind === "channel" ? "channel" : "group",
};
}
+6 -1
View File
@@ -7,7 +7,12 @@ export type SessionScope = "per-sender" | "global";
export type SessionChannelId = ChannelId | "webchat";
export type SessionChatType = "direct" | "group" | "room";
export type SessionChatType =
| "direct"
| "group"
| "channel"
// Legacy alias for "channel".
| "room";
export type SessionEntry = {
/**