Skip to content

Commit 0ea383f

Browse files
authored
Merge branch 'SciSharp:master' into master
2 parents 2556391 + 75a1664 commit 0ea383f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Infrastructure/BotSharp.Core/Conversations/Services/ConversationService.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,12 +173,14 @@ public async Task<Conversation> GetConversationRecordOrCreateNew(string agentId)
173173
var state = _services.GetRequiredService<IConversationStateService>();
174174
var channel = state.GetState("channel");
175175
var channelId = state.GetState("channel_id");
176+
var userId = state.GetState("current_user_id");
176177
var sess = new Conversation
177178
{
178179
Id = _conversationId,
179180
Channel = channel,
180181
ChannelId = channelId,
181-
AgentId = agentId
182+
AgentId = agentId,
183+
UserId = userId,
182184
};
183185
converation = await NewConversation(sess);
184186
}

0 commit comments

Comments
 (0)