...
This commit is contained in:
@@ -212,6 +212,8 @@ namespace Hushian.Application.Services
|
||||
|
||||
}).FirstOrDefaultAsync();
|
||||
Response.Success = mi.ID > 0;
|
||||
if (Response.Success)
|
||||
await NewChatInHub(dto.CompanyID);
|
||||
}
|
||||
else Response.Errors.Add("شناسه گروه صحیح نمی باشد");
|
||||
|
||||
@@ -508,6 +510,11 @@ namespace Hushian.Application.Services
|
||||
await _hubContext.Clients.User(UserID.ToString())
|
||||
.SendAsync("CheckMarkAsRead", item);
|
||||
}
|
||||
public async Task NewChatInHub(int CompanyID)
|
||||
{
|
||||
await _hubContext.Clients.All
|
||||
.SendAsync("NewChat", CompanyID);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user