Exemplo n.º 1
0
        public async Task <IActionResult> PostMessageToChannelAsync(int id, MessagePostDto messagePostDto)
        {
            await _channelCommandService.NotifyTypingAsync(id, User.GetUserId(), true);

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

            return(Ok());
        }
Exemplo n.º 2
0
        public async Task <IActionResult> NotifyTypingAsync([FromBody] int channelId)
        {
            await _channelCommandService.NotifyTypingAsync(channelId, User.GetUserId(), false);

            return(Ok());
        }