We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ad27596 + 45bf766 commit 75a1664Copy full SHA for 75a1664
src/Infrastructure/BotSharp.Core/Conversations/Services/ConversationService.cs
@@ -173,12 +173,14 @@ public async Task<Conversation> GetConversationRecordOrCreateNew(string agentId)
173
var state = _services.GetRequiredService<IConversationStateService>();
174
var channel = state.GetState("channel");
175
var channelId = state.GetState("channel_id");
176
+ var userId = state.GetState("current_user_id");
177
var sess = new Conversation
178
{
179
Id = _conversationId,
180
Channel = channel,
181
ChannelId = channelId,
- AgentId = agentId
182
+ AgentId = agentId,
183
+ UserId = userId,
184
};
185
converation = await NewConversation(sess);
186
}
0 commit comments