private void HandleSendChat(ResponseHandle <Chat.Commands.SendChat, ChatMessage, Nothing> request)
        {
            var message = request.Request.message;
            var update  = new Chat.Update();

            update.AddChatSent(new ChatMessage(message.Substring(0, Mathf.Min(15, message.Length))));
            chat.Send(update);
            request.Respond(new Nothing());
        }
Пример #2
0
        private void ComponentUpdated(Chat.Update update)
        {
            var lastIndex = update.chatSent.Count - 1;

            notification.ShowNotification(update.chatSent[lastIndex].message);
        }