Beispiel #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());
        }
Beispiel #2
0
        public async Task <IActionResult> NotifyTypingAsync([FromBody] int channelId)
        {
            await _channelCommandService.NotifyTypingAsync(channelId, User.GetUserId(), false);

            return(Ok());
        }