Пример #1
0
        public async Task <IActionResult> PostMessageToConversationAsync(int id, MessagePostDto messagePostDto)
        {
            await _conversationCommandService.NotifyTypingAsync(id, User.GetUserId(), true);

            await _messageCommandService.PostMessageToConversationAsync(messagePostDto.MessageContent, id, User.GetUserId(), User.GetWorkspaceId());

            return(Ok());
        }
Пример #2
0
        public async Task <IActionResult> NotifyTypingAsync([FromBody] int conversationId)
        {
            await _conversationCommandService.NotifyTypingAsync(conversationId, User.GetUserId(), false);

            return(Ok());
        }