Skip to content

Commit

Permalink
Fix condition convervation participants (#1789)
Browse files Browse the repository at this point in the history
  • Loading branch information
PopDaph authored Sep 26, 2023
1 parent 6ee7eb5 commit 7e44ad4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions front/lib/api/assistant/conversation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -425,10 +425,10 @@ export async function getConversation(
agentMessage: message.agentMessage,
messages,
});
const key = m.sId;
if (!agentParticipants.has(key)) {
agentParticipants.set(key, {
id: key,
const configurationId = m.configuration.sId;
if (!agentParticipants.has(configurationId)) {
agentParticipants.set(configurationId, {
configurationId: configurationId,
name: m.configuration.name,
pictureUrl: m.configuration.pictureUrl,
});
Expand Down

0 comments on commit 7e44ad4

Please sign in to comment.