|
|
@ -1,6 +1,6 @@
|
|
|
|
import React, { Component } from 'react';
|
|
|
|
import React, { Component } from 'react';
|
|
|
|
import "../css/messagemy.css"
|
|
|
|
import "../css/messagemy.css"
|
|
|
|
import {getImageUrl,markdownToHTML} from 'educoder';
|
|
|
|
import {getImageUrl,markdownToHTML,htmlEncode} from 'educoder';
|
|
|
|
import { Modal,Input,Icon,Tooltip,Spin} from 'antd';
|
|
|
|
import { Modal,Input,Icon,Tooltip,Spin} from 'antd';
|
|
|
|
import axios from 'axios';
|
|
|
|
import axios from 'axios';
|
|
|
|
import TPMMDEditor from '../../tpm/challengesnew/TPMMDEditor';
|
|
|
|
import TPMMDEditor from '../../tpm/challengesnew/TPMMDEditor';
|
|
|
@ -417,6 +417,7 @@ class MessagChat extends Component{
|
|
|
|
let contents=this.messageRef.current.getValue().trim();
|
|
|
|
let contents=this.messageRef.current.getValue().trim();
|
|
|
|
const query = this.props.location.search;
|
|
|
|
const query = this.props.location.search;
|
|
|
|
let target_ids = query.split('?target_ids=');
|
|
|
|
let target_ids = query.split('?target_ids=');
|
|
|
|
|
|
|
|
contents=htmlEncode(contents)
|
|
|
|
let url = `/users/${this.props.match.params.userid}/private_messages.json`;
|
|
|
|
let url = `/users/${this.props.match.params.userid}/private_messages.json`;
|
|
|
|
axios.post(url, {
|
|
|
|
axios.post(url, {
|
|
|
|
target_id: target_ids[1],
|
|
|
|
target_id: target_ids[1],
|
|
|
|