private async ValueTask AddParticipantTyping(Participant participant, ChatChannel channel) { var channelId = GetChannelId(channel).ToString(); var conference = await _mediator.Send(new FindConferenceByIdRequest(participant.ConferenceId)); var added = await _chatRepository.AddParticipantTyping(participant, channelId); _participantTypingTimer.RemoveParticipantTypingAfter(participant, channel, TimeSpan.FromSeconds(conference.Configuration.Chat.CancelParticipantIsTypingAfter)); if (added) { await NotifyParticipantTypingUpdatedIfEnabled(participant.ConferenceId, channel, conference); } }