Set states when creating conversation.
This commit is contained in:
parent
0b0935300a
commit
8aaa3c6b50
|
|
@ -33,7 +33,7 @@ public class ConversationController : ControllerBase, IApiAdapter
|
|||
UserId = _user.Id
|
||||
};
|
||||
conv = await service.NewConversation(conv);
|
||||
config.States.ForEach(x => conv.States[x.Split('=')[0]] = x.Split('=')[1]);
|
||||
service.SetConversationId(conv.Id, config.States);
|
||||
|
||||
return ConversationViewModel.FromSession(conv);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue