Remove state auto set.
This commit is contained in:
parent
732e3925fb
commit
2e136f67c1
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue