Merge branch 'master' of https://github.com/Qtoss-AI/BotSharp
This commit is contained in:
commit
4813c5b0f4
|
|
@ -173,12 +173,14 @@ public partial class ConversationService : IConversationService
|
|||
var state = _services.GetRequiredService<IConversationStateService>();
|
||||
var channel = state.GetState("channel");
|
||||
var channelId = state.GetState("channel_id");
|
||||
var userId = state.GetState("current_user_id");
|
||||
var sess = new Conversation
|
||||
{
|
||||
Id = _conversationId,
|
||||
Channel = channel,
|
||||
ChannelId = channelId,
|
||||
AgentId = agentId
|
||||
AgentId = agentId,
|
||||
UserId = userId,
|
||||
};
|
||||
converation = await NewConversation(sess);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -570,7 +570,7 @@ public class UserService : IUserService
|
|||
|
||||
if (!string.IsNullOrEmpty(user.Phone))
|
||||
{
|
||||
record = db.GetUserByPhone(user.Phone);
|
||||
record = db.GetUserByPhone(user.Phone, regionCode: user.RegionCode);
|
||||
}
|
||||
|
||||
if (!string.IsNullOrEmpty(user.Email))
|
||||
|
|
@ -745,7 +745,7 @@ public class UserService : IUserService
|
|||
await Task.CompletedTask;
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
public async Task<bool> RemoveDashboardConversation(string userId, string conversationId)
|
||||
{
|
||||
var db = _services.GetRequiredService<IBotSharpRepository>();
|
||||
|
|
|
|||
Loading…
Reference in a new issue