From 491452ece191293c1947b0e8c16321cb1a7ba7a3 Mon Sep 17 00:00:00 2001 From: Haiping Chen <101423@smsassist.com> Date: Sat, 6 Apr 2024 19:00:58 -0500 Subject: [PATCH] Restore Append --- .../Conversations/Services/ConversationStorage.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Infrastructure/BotSharp.Core/Conversations/Services/ConversationStorage.cs b/src/Infrastructure/BotSharp.Core/Conversations/Services/ConversationStorage.cs index 532f56d4..e523ce48 100644 --- a/src/Infrastructure/BotSharp.Core/Conversations/Services/ConversationStorage.cs +++ b/src/Infrastructure/BotSharp.Core/Conversations/Services/ConversationStorage.cs @@ -28,11 +28,11 @@ public class ConversationStorage : IConversationStorage var dialogElements = new List(); // Prevent duplicate record to be inserted - /*var dialogs = db.GetConversationDialogs(conversationId); + var dialogs = db.GetConversationDialogs(conversationId); if (dialogs.Any(x => x.MetaData.MessageId == dialog.MessageId && x.Content == dialog.Content)) { return; - }*/ + } if (dialog.Role == AgentRole.Function) {