222
This commit is contained in:
@@ -35,9 +35,9 @@ namespace IM_API.Hubs
|
||||
//将用户加入已加入聊天的会话组
|
||||
string userIdStr = Context.User.FindFirstValue(ClaimTypes.NameIdentifier);
|
||||
var keys = await _conversationService.GetUserAllStreamKeyAsync(int.Parse(userIdStr));
|
||||
foreach(var key in keys)
|
||||
foreach (var key in keys)
|
||||
{
|
||||
await Groups.AddToGroupAsync(Context.ConnectionId,key);
|
||||
await Groups.AddToGroupAsync(Context.ConnectionId, key);
|
||||
}
|
||||
await base.OnConnectedAsync();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user