Remove state auto set.

This commit is contained in:
Haiping Chen 2023-12-07 21:31:34 -06:00
parent 732e3925fb
commit 2e136f67c1

View file

@ -107,11 +107,6 @@ public class ConversationStateService : IConversationStateService, IDisposable
public string GetState(string name, string defaultValue = "")
{
if (!_states.ContainsKey(name))
{
_states[name] = defaultValue ?? "";
}
if (string.IsNullOrEmpty(_states[name]))
{
return defaultValue;
}