...
This commit is contained in:
@@ -338,6 +338,12 @@
|
||||
{ ChatCurrent.Responses.First(a => a.ID == chatresponseid).IsRead = true; StateHasChanged(); }
|
||||
});
|
||||
|
||||
//NewChat
|
||||
hubConnection.On<int>("NewChat", async (companyid) =>
|
||||
{
|
||||
if (CurrentUser.CompanyID==companyid)
|
||||
{ Inbox1Items = await chatService.ChatAwaitingOurResponse(); StateHasChanged(); }
|
||||
});
|
||||
await hubConnection.StartAsync();
|
||||
//---------end hub
|
||||
|
||||
|
Reference in New Issue
Block a user