public async Task GroupMessageSeen(int chatId, int msgId, string currentUserId)
        {
            GroupChat chat        = repository.GroupChats.FirstOrDefault(g => g.ChatId == chatId);
            AppUser   currentUser = userManager.Users.FirstOrDefault(u => u.Id == currentUserId);
            string    userName    = (currentUser.FirstName == null || currentUser.LastName == null) ?
                                    currentUser.UserName : currentUser.FirstName + " " + currentUser.LastName;
            string userPhoto = (currentUser.ProfilePhotoUrl != null) ?
                               $"/UsersData/{currentUser.ProfilePhotoUrl}" : "/defaultAvatar.png";

            GroupMessageView view = new GroupMessageView
            {
                UserId    = currentUser.Id,
                MessageId = msgId
            };

            repository.AddViewToGroupMsg(view);

            await Clients.All.SendAsync("GroupMsgSeen", chatId, msgId, userName, userPhoto);

            await Clients.All.SendAsync("CheckTotalUnseenHeader", currentUserId, currentUserId);

            await Clients.All.SendAsync("HeaderGroupMsgSeen", chatId, currentUserId);
        }