...
This commit is contained in:
@@ -292,7 +292,7 @@ namespace Hushian.Application.Services
|
|||||||
|
|
||||||
if (modelA.Type == ConversationType.EU) user = modelA.ExperID.Value.ToString();
|
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);
|
await WriteInHubFromUser(Response.Value, user);
|
||||||
|
|
||||||
@@ -390,7 +390,7 @@ namespace Hushian.Application.Services
|
|||||||
string user = "";
|
string user = "";
|
||||||
if (item.Type == ConversationType.EU) user = item.ExperID.Value.ToString();
|
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();
|
else if (item.Type == ConversationType.UE) user = item.conversation.UserID.ToString();
|
||||||
|
|
||||||
|
@@ -29,8 +29,8 @@ namespace Hushian.Application.Services
|
|||||||
{
|
{
|
||||||
new Claim(JwtRegisteredClaimNames.Sub,
|
new Claim(JwtRegisteredClaimNames.Sub,
|
||||||
//Role=="User" ? "U"+userId.ToString()
|
//Role=="User" ? "U"+userId.ToString()
|
||||||
//:Role=="Company" ? "C"+userId.ToString()
|
Role=="Company" ? "C"+userId.ToString()
|
||||||
//:
|
:
|
||||||
userId.ToString()),
|
userId.ToString()),
|
||||||
new Claim(ClaimTypes.NameIdentifier, UserName),
|
new Claim(ClaimTypes.NameIdentifier, UserName),
|
||||||
new Claim(CustomClaimTypes.Uid,userId.ToString()),
|
new Claim(CustomClaimTypes.Uid,userId.ToString()),
|
||||||
|
@@ -622,6 +622,7 @@
|
|||||||
async Task NewChat()
|
async Task NewChat()
|
||||||
{
|
{
|
||||||
LastOpenChat = null;
|
LastOpenChat = null;
|
||||||
|
GroupID = null;
|
||||||
}
|
}
|
||||||
async Task CloseChat()
|
async Task CloseChat()
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user