...
This commit is contained in:
@@ -292,7 +292,7 @@ namespace Hushian.Application.Services
|
||||
|
||||
if (modelA.Type == ConversationType.EU) user = modelA.ExperID.Value.ToString();
|
||||
|
||||
else if (modelA.Type == ConversationType.CU) user = modelA.conversation.CompanyID.ToString();
|
||||
else if (modelA.Type == ConversationType.CU) user ="C"+ modelA.conversation.CompanyID.ToString();
|
||||
|
||||
await WriteInHubFromUser(Response.Value, user);
|
||||
|
||||
@@ -390,7 +390,7 @@ namespace Hushian.Application.Services
|
||||
string user = "";
|
||||
if (item.Type == ConversationType.EU) user = item.ExperID.Value.ToString();
|
||||
|
||||
else if (item.Type == ConversationType.CU) user = item.conversation.CompanyID.ToString();
|
||||
else if (item.Type == ConversationType.CU) user ="C"+ item.conversation.CompanyID.ToString();
|
||||
|
||||
else if (item.Type == ConversationType.UE) user = item.conversation.UserID.ToString();
|
||||
|
||||
|
@@ -29,8 +29,8 @@ namespace Hushian.Application.Services
|
||||
{
|
||||
new Claim(JwtRegisteredClaimNames.Sub,
|
||||
//Role=="User" ? "U"+userId.ToString()
|
||||
//:Role=="Company" ? "C"+userId.ToString()
|
||||
//:
|
||||
Role=="Company" ? "C"+userId.ToString()
|
||||
:
|
||||
userId.ToString()),
|
||||
new Claim(ClaimTypes.NameIdentifier, UserName),
|
||||
new Claim(CustomClaimTypes.Uid,userId.ToString()),
|
||||
|
@@ -9,7 +9,7 @@
|
||||
@using System.Threading;
|
||||
@if(CompanyInfo!=null)
|
||||
{
|
||||
<PageTitle>گفتگو با @CompanyInfo?.FullName</PageTitle>
|
||||
<PageTitle>گفتگو با @CompanyInfo?.FullName</PageTitle>
|
||||
}
|
||||
@inject NavigationManager NavigationManager
|
||||
@inject ChatService ChatService
|
||||
@@ -622,6 +622,7 @@
|
||||
async Task NewChat()
|
||||
{
|
||||
LastOpenChat = null;
|
||||
GroupID = null;
|
||||
}
|
||||
async Task CloseChat()
|
||||
{
|
||||
|
Reference in New Issue
Block a user