feat(FN-3859): add hybrid room chat responder policy helper
Adds a room responder policy helper for hybrid room chat across the core type definitions and dashboard implementation, with corresponding tests in the core package. Fusion-Task-Id: FN-3859
This commit is contained in:
@@ -770,7 +770,8 @@ export class ChatManager {
|
||||
|
||||
const ambientCandidates = roomMembers
|
||||
.map((member) => agentsById.get(member.agentId))
|
||||
.filter((agent): agent is Agent => Boolean(agent) && !seenDirect.has(agent.id));
|
||||
.filter((agent): agent is Agent => agent !== undefined)
|
||||
.filter((agent) => !seenDirect.has(agent.id));
|
||||
|
||||
const ambient = ambientCandidates.slice(0, ROOM_AMBIENT_MAX_RESPONDERS);
|
||||
if (ambientCandidates.length > ROOM_AMBIENT_MAX_RESPONDERS) {
|
||||
|
||||
Reference in New Issue
Block a user