Skip to content

Commit

Permalink
Update indexer.js
Browse files Browse the repository at this point in the history
  • Loading branch information
serefyarar committed Jun 27, 2024
1 parent e1e6cd2 commit 133c411
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions api/src/libs/indexer.js
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,15 @@ class Indexer {
if (!message) {
return;
}

// Only listen user mesages for now.
if (
message.role === `assistant` &&
message.controllerDID.id === agentDID.id
) {
return;
}

const conversation = await conversationService.getConversation(
message.conversationId,
);
Expand Down

0 comments on commit 133c411

Please sign in to comment.