diff --git a/src/Infrastructure/BotSharp.Core.SideCar/Services/BotSharpConversationSideCar.cs b/src/Infrastructure/BotSharp.Core.SideCar/Services/BotSharpConversationSideCar.cs index 79711cb6..4b636440 100644 --- a/src/Infrastructure/BotSharp.Core.SideCar/Services/BotSharpConversationSideCar.cs +++ b/src/Infrastructure/BotSharp.Core.SideCar/Services/BotSharpConversationSideCar.cs @@ -15,9 +15,6 @@ ******************************************************************************/ using BotSharp.Core.Infrastructures; -using NetTopologySuite.Index.KdTree; -using Newtonsoft.Json.Linq; -using static System.Runtime.InteropServices.JavaScript.JSType; namespace BotSharp.Core.SideCar.Services; diff --git a/src/Infrastructure/BotSharp.Core/MessageHub/Observers/ConversationObserver.cs b/src/Infrastructure/BotSharp.Core/MessageHub/Observers/ConversationObserver.cs index e2588c6c..1ee4b164 100644 --- a/src/Infrastructure/BotSharp.Core/MessageHub/Observers/ConversationObserver.cs +++ b/src/Infrastructure/BotSharp.Core/MessageHub/Observers/ConversationObserver.cs @@ -30,6 +30,8 @@ public class ConversationObserver : BotSharpObserverBase value) { var conv = _services.GetRequiredService(); + var storage = _services.GetRequiredService(); + var routeCtx = _services.GetRequiredService(); if (value.EventName == ChatEvent.OnIndicationReceived) { @@ -41,5 +43,16 @@ public class ConversationObserver : BotSharpObserverBase(); - storage.Append(conv.ConversationId, message); - } break; }