/** Uniform lookup with default-vs-peer identity from the entry that resolved the chat. */
resolveChat(chatKey: string): IResolvedAgentChat<TSession> | undefined {
if (!chatSession) {
return undefined;
}
return { chatSession, isDefault: chatKey === this._defaultChatKey };
/** Every live chat session — the default chat plus all peers. */