add(login):完善登录逻辑
This commit is contained in:
@@ -34,7 +34,6 @@ namespace IM_API.Hubs
|
||||
}
|
||||
var userIdStr = Context.User.FindFirstValue(ClaimTypes.NameIdentifier);
|
||||
await _messageService.SendPrivateMessageAsync(int.Parse(userIdStr),dto.ReceiverId,dto);
|
||||
await Clients.Caller.SendAsync("ReceiveMessage",userIdStr,"qfqwfqwfqw");
|
||||
await Clients.Users(dto.ReceiverId.ToString()).SendAsync("ReceiveMessage", userIdStr, dto.Content);
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user